/* Terhorst.IO – standalone client theme */

@font-face {
    font-family: "Geist";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/geist-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --th-bg: #0f172a;
    --th-bg-deep: #0a111e;
    --th-fg: #f1f5f9;
    --th-card: #1e293b;
    --th-muted: #94a3b8;
    --th-muted-strong: #e6ebf2;
    --th-border: #334155;
    --th-border-soft: #1e293b;
    --th-primary: #06b6d4;
    --th-primary-hover: #22d3ee;
    --th-primary-ink: #0f172a;
    --th-accent: #0e7490;
    --th-blue: #3b82f6;
    --th-glow: rgba(6, 182, 212, 0.3);
    --th-danger: #f87171;
    --th-success: #34d399;
    --th-warning: #fbbf24;
    --th-info: #38bdf8;
    --th-radius: 1rem;
    --th-radius-sm: 0.75rem;
    --th-font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    --primary: #06b6d4;
    --secondary: #64748b;
    --success: #10b981;
    --info: #06b6d4;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #1e293b;
    --dark: #0f172a;
    --white: #f8fafc;
    --font-family-sans-serif: "Geist", system-ui, sans-serif;
}

html.th-theme {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #334155 #0a111e;
}

html.th-theme,
html.th-theme body,
html.th-theme body * {
    scrollbar-width: thin;
    scrollbar-color: #334155 #0a111e;
}

html.th-theme::-webkit-scrollbar,
html.th-theme body::-webkit-scrollbar,
html.th-theme body *::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html.th-theme::-webkit-scrollbar-track,
html.th-theme body::-webkit-scrollbar-track,
html.th-theme body *::-webkit-scrollbar-track,
html.th-theme::-webkit-scrollbar-corner,
html.th-theme body::-webkit-scrollbar-corner,
html.th-theme body *::-webkit-scrollbar-corner {
    background: #0a111e;
}

html.th-theme::-webkit-scrollbar-thumb,
html.th-theme body::-webkit-scrollbar-thumb,
html.th-theme body *::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 8px;
    border: 2px solid #0a111e;
}

html.th-theme::-webkit-scrollbar-thumb:hover,
html.th-theme body::-webkit-scrollbar-thumb:hover,
html.th-theme body *::-webkit-scrollbar-thumb:hover {
    background: #06b6d4;
}

html.th-theme {
    height: 100%;
}

html.th-theme body.th-body {
    min-height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto !important;
    display: flex;
    flex-direction: column;
}

html.th-theme #header,
html.th-theme .master-breadcrumb {
    flex-shrink: 0;
}

html.th-theme section#main-body {
    flex: 1 0 auto;
    width: 100%;
}

html.th-theme,
body.th-body,
body.primary-bg-color {
    background-color: var(--th-bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 10% 8%, rgba(6, 182, 212, 0.14), transparent 55%),
        radial-gradient(ellipse 55% 45% at 92% 18%, rgba(59, 130, 246, 0.08), transparent 50%),
        linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px);
    background-size: auto, auto, 60px 60px, 60px 60px;
    background-repeat: no-repeat, no-repeat, repeat, repeat;
    color: var(--th-fg);
    font-family: var(--th-font);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--th-primary-hover);
}

a:hover {
    color: var(--th-primary);
}

h1, h2, h3, h4, h5, h6,
.header-lined h1 {
    color: #fff;
}

.text-muted {
    color: var(--th-muted) !important;
}

/* Brand mark */
.th-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none !important;
}

.th-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: var(--th-primary);
    color: var(--th-primary-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.th-mark svg {
    width: 1rem;
    height: 1rem;
}

.th-wordmark {
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: 1.125rem;
    line-height: 1;
}

.th-wordmark span {
    color: var(--th-primary-hover);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

#header,
#header.header,
#header.th-header {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-bottom: 1px solid var(--th-border) !important;
}

#header.is-scrolled {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

#header .navbar,
#header .navbar.navbar-light,
#header .navbar.navbar-expand-xl,
#header .th-navbar,
#header .navbar-collapse,
#header .container {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

#header .th-navbar {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

@media (min-width: 1200px) {
    #header .th-navbar .container {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }

    #header .th-navbar .navbar-brand { order: 1; }
    #header .th-navbar .navbar-collapse { order: 2; flex-grow: 1; }
    #header .th-navbar .th-toolbar { order: 3; margin-left: 0.75rem !important; }
}

#header .th-nav-secondary {
    margin-left: auto;
    align-items: center;
}

#header .topbar {
    background: rgba(0, 0, 0, 0.25) !important;
    color: var(--th-muted) !important;
    border-bottom: 1px solid var(--th-border) !important;
}

#header .topbar .btn,
#header .topbar .active-client .btn,
#header .topbar .active-client .input-group-text {
    color: var(--th-muted) !important;
    background: transparent !important;
    border-color: var(--th-border) !important;
}

#header .logo-img {
    max-height: 36px;
}

#header .toolbar .nav-link,
#header .th-account-btn,
#header .th-locale-btn {
    border: 1px solid var(--th-border) !important;
    color: var(--th-muted-strong) !important;
    background: var(--th-card) !important;
    border-radius: var(--th-radius-sm) !important;
    height: 2.25rem !important;
    min-height: 2.25rem !important;
    padding: 0 0.7rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1 !important;
    opacity: 1 !important;
}

#header .toolbar .nav-link:hover,
#header .th-account-btn:hover,
#header .th-locale-btn:hover,
#header .th-account-item.show > .th-account-btn,
#header .th-account-item.open > .th-account-btn {
    color: #fff !important;
    border-color: var(--th-primary) !important;
    background: var(--th-card) !important;
}

#header .th-account-btn.dropdown-toggle::after {
    display: none !important;
}

#header button.nav-link,
#header button.th-account-btn {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

#header .collapsable-dropdown > button.dropdown-toggle,
#header .th-main-nav .collapsable-dropdown > button.dropdown-toggle {
    background: transparent;
    border: 0;
    color: inherit;
    padding: 0.5rem 0.75rem;
}

#header .toolbar .nav-link .badge,
.badge-info {
    background: var(--th-primary);
    color: var(--th-primary-ink);
}

#header .th-locale-btn {
    gap: 0.4rem;
    white-space: nowrap;
}

#header .th-locale-btn .iti-flag {
    display: inline-block;
    flex-shrink: 0;
    transform: scale(0.85);
    transform-origin: center;
}

#header .th-locale-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

#header .navbar-nav .nav-link,
#header .navbar-nav .nav-link > span,
#header .navbar-nav .nav-link > i,
#header .navbar-nav .nav-item > a,
#header .navbar-nav .nav-item > a > span,
#header .navbar-nav .dropdown-toggle,
#header .navbar-light .navbar-nav .nav-link {
    color: #e6ebf2 !important;
    opacity: 1 !important;
    text-shadow: none !important;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--th-radius-sm);
}

#header .navbar-nav:not(.th-toolbar) .nav-link:not(.th-account-btn):not(.th-locale-btn) {
    padding: 0.45rem 0.7rem !important;
}

#header .navbar-nav .nav-link:hover,
#header .navbar-nav .nav-link:hover > span,
#header .navbar-nav .nav-link:focus,
#header .navbar-nav .nav-item > a:hover,
#header .navbar-nav .nav-item > a:hover > span,
#header .navbar-nav .nav-item:hover > a {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07) !important;
}

#header .navbar-nav .nav-item.active > a,
#header .navbar-nav .nav-item.active > a > span,
#header .navbar-nav .nav-link.active,
#header .navbar-nav .nav-item.open > a,
#header .navbar-nav .nav-item.show > a {
    color: #fff !important;
    background: rgba(6, 182, 212, 0.16) !important;
}

#header .navbar-nav .dropdown-toggle::after {
    border-top-color: currentColor !important;
    opacity: 0.7;
}

#header .navbar-toggler,
#header .navbar-toggler-icon,
#header .btn.nav-link {
    color: var(--th-muted-strong) !important;
    border-color: var(--th-border) !important;
}

#header .dropdown-menu,
#header .navbar-nav .dropdown-menu,
.dropdown-menu {
    background: var(--th-card) !important;
    background-image: none !important;
    border: 1px solid var(--th-border) !important;
    border-radius: var(--th-radius-sm) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28) !important;
    filter: none !important;
    color: var(--th-fg) !important;
    padding: 0.35rem !important;
}

#header .dropdown-menu::before,
#header .dropdown-menu::after,
#header .navbar-nav .dropdown-menu::before,
#header .navbar-nav .dropdown-menu::after {
    box-shadow: none !important;
}

#header .dropdown-menu > li,
#header .navbar-nav .dropdown-menu > li {
    display: block;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    list-style: none;
}

#header .dropdown-menu .dropdown-item i,
#header .dropdown-menu a.dropdown-item i {
    width: 1.15rem;
    margin-right: 0.4rem;
    text-align: center;
    color: var(--th-primary);
}

#header .dropdown-menu .dropdown-item,
#header .dropdown-menu a.dropdown-item,
.dropdown-item {
    color: #e6ebf2 !important;
    opacity: 1 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: var(--th-radius-sm) !important;
    padding: 0.55rem 0.85rem !important;
    font-size: 0.875rem;
}

#header .navbar-nav .dropdown-menu a:not(.dropdown-item) {
    color: #e6ebf2 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#header .dropdown-menu .dropdown-item:hover,
#header .dropdown-menu .dropdown-item:focus,
.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(6, 182, 212, 0.16) !important;
    color: #fff !important;
    box-shadow: none !important;
}

#header .navbar-nav .dropdown-menu > li:hover,
#header .navbar-nav .dropdown-menu > li:hover > a:not(.dropdown-item) {
    background: transparent !important;
    box-shadow: none !important;
}

.dropdown-divider,
#header .dropdown-menu .dropdown-divider {
    border-top: 1px solid var(--th-border) !important;
    margin: 0.3rem 0 !important;
}

/* Breadcrumb */
.master-breadcrumb {
    background: transparent !important;
    border: 0 !important;
}

.master-breadcrumb .breadcrumb {
    background: transparent;
    padding-left: 0;
}

.master-breadcrumb .breadcrumb-item,
.master-breadcrumb .breadcrumb-item a {
    color: var(--th-muted);
}

.master-breadcrumb .breadcrumb-item.active {
    color: var(--th-fg);
}

/* Cards, panels, lists */
.card,
.panel,
.list-group-item,
.sidebar .panel,
.sidebar .list-group {
    background: var(--th-card) !important;
    border-color: var(--th-border) !important;
    color: var(--th-fg);
}

.card-header,
.panel-heading,
.modal-header,
.modal-footer {
    background: var(--th-bg-deep) !important;
    border-color: var(--th-border) !important;
    color: #fff;
}

.modal-content {
    background: var(--th-card);
    border: 1px solid var(--th-border);
    color: var(--th-fg);
}

/* Forms */
.form-control,
.custom-select,
select.form-control,
.input-group-text {
    background: var(--th-bg-deep) !important;
    border-color: var(--th-border) !important;
    color: var(--th-fg) !important;
}

.form-control:focus {
    border-color: var(--th-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(6, 182, 212, 0.2) !important;
}

.form-control::placeholder {
    color: var(--th-muted);
}

/* Buttons */
.btn-primary,
.btn-success,
.th-btn-primary {
    background: var(--th-primary) !important;
    border-color: var(--th-primary) !important;
    color: var(--th-primary-ink) !important;
    font-weight: 600;
}

.btn-primary:hover,
.btn-success:hover,
.th-btn-primary:hover {
    background: var(--th-primary-hover) !important;
    border-color: var(--th-primary-hover) !important;
    color: var(--th-primary-ink) !important;
}

.btn-default,
.btn-secondary,
.th-btn-ghost {
    background: transparent !important;
    border: 1px solid var(--th-border) !important;
    color: var(--th-muted-strong) !important;
}

.btn-default:hover,
.btn-secondary:hover,
.th-btn-ghost:hover {
    border-color: var(--th-primary) !important;
    color: #fff !important;
}

.btn-outline-primary {
    color: var(--th-primary-hover) !important;
    border-color: var(--th-primary) !important;
}

/* Tables / DataTables */
.table,
table.table,
table.table-list,
.dataTables_wrapper table,
.dataTables_wrapper table.table-list {
    color: var(--th-fg) !important;
    background: var(--th-card) !important;
    border-color: var(--th-border) !important;
}

.table thead th,
table.table-list thead th,
.dataTables_wrapper table thead th,
.dataTables_wrapper table.table-list thead th,
.dataTables_wrapper table.table-list thead th.sorting,
.dataTables_wrapper table.table-list thead th.sorting_asc,
.dataTables_wrapper table.table-list thead th.sorting_desc {
    background: var(--th-bg-deep) !important;
    color: var(--th-muted-strong) !important;
    border-color: var(--th-border) !important;
}

.dataTables_wrapper table.table-list thead th.sorting,
.dataTables_wrapper table.table-list thead th.sorting_asc,
.dataTables_wrapper table.table-list thead th.sorting_desc {
    cursor: pointer;
}

.dataTables_wrapper table.table-list thead th.sorting:hover {
    color: #fff !important;
}

table.dataTable thead > tr > th.sorting:before,
table.dataTable thead > tr > th.sorting:after,
table.dataTable thead > tr > th.sorting_asc:before,
table.dataTable thead > tr > th.sorting_asc:after,
table.dataTable thead > tr > th.sorting_desc:before,
table.dataTable thead > tr > th.sorting_desc:after {
    color: var(--th-primary-hover);
}

.table td,
.table th,
table.table-list td,
table.table-list th,
.table-list > tbody > tr > td,
.dataTables_wrapper table.table-list tbody td {
    background: var(--th-card) !important;
    color: var(--th-fg) !important;
    border-color: var(--th-border) !important;
    box-shadow: none !important;
}

.table-striped tbody tr:nth-of-type(odd),
.table-striped tbody tr:nth-of-type(odd) > td,
table.dataTable tbody tr.odd,
table.dataTable tbody tr.odd > td,
.table-list > tbody > tr:nth-of-type(odd) > td {
    background: #172033 !important;
}

.table-list > tbody > tr:hover > td,
table.dataTable tbody tr:hover > td {
    background: rgba(6, 182, 212, 0.12) !important;
    color: #fff !important;
}

.table-list > tbody > tr:hover {
    cursor: default;
}

.table small,
table.table-list small {
    color: var(--th-muted);
}

.th-price-na {
    color: var(--th-muted);
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1;
    opacity: 0.75;
}

.th-col-help {
    display: inline-flex;
    align-items: center;
    margin-left: 0.28rem;
    color: var(--th-muted);
    cursor: help;
    font-size: 0.78em;
    vertical-align: 0.08em;
}

.th-col-help:hover,
.th-col-help:focus {
    color: var(--th-primary);
    outline: none;
}

.tooltip-inner {
    max-width: 17.5rem;
    text-align: left;
}

.dataTables_wrapper {
    color: var(--th-muted);
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    color: var(--th-muted) !important;
}

.dataTables_wrapper .dataTables_filter label .form-control,
.dataTables_wrapper .dataTables_length select {
    background: var(--th-bg-deep) !important;
    border-color: var(--th-border) !important;
    color: var(--th-fg) !important;
}

.dataTables_wrapper table.table-list {
    border: 1px solid var(--th-border) !important;
    border-radius: var(--th-radius-sm);
    overflow: hidden;
}

.tld-filters a.badge-secondary {
    background: var(--th-card);
    color: var(--th-muted-strong);
    border: 1px solid var(--th-border);
}

.tld-filters a.badge-success {
    background: var(--th-primary) !important;
    color: var(--th-primary-ink) !important;
    border-color: var(--th-primary);
}

.domain-pricing .featured-tld {
    background: var(--th-card);
    border: 1px solid var(--th-border);
    color: var(--th-fg);
}

/* Alerts */
.alert-success { background: rgba(16, 185, 129, 0.15); border-color: #10b981; color: #d1fae5; }
.alert-danger,
.alert-error { background: rgba(239, 68, 68, 0.15); border-color: #ef4444; color: #fecaca; }
.alert-warning { background: rgba(245, 158, 11, 0.15); border-color: #f59e0b; color: #fde68a; }
.alert-info { background: rgba(6, 182, 212, 0.15); border-color: #06b6d4; color: #cffafe; }

section#main-body,
#main-body > .container,
#main-body .primary-content,
.th-hero,
.th-hero-inner,
.th-section {
    background: transparent !important;
    background-image: none !important;
}

.th-hero {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    overflow: visible;
}

.th-hero-glow {
    display: none;
}

.th-hero-inner {
    position: relative;
    max-width: 46rem;
}

.th-badge {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--th-primary-hover);
    border: 1px solid var(--th-border);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    margin-bottom: 1rem;
}

.th-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.th-gradient-text {
    background: linear-gradient(90deg, #fff 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.th-hero-sub {
    color: var(--th-muted);
    font-size: 1.05rem;
    max-width: 40rem;
}

.th-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}

.th-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.th-stat-value {
    color: var(--th-primary-hover);
    font-size: 1.5rem;
    font-weight: 700;
}

.th-stat-label {
    color: var(--th-muted);
    font-size: 0.85rem;
}

.th-section {
    padding: 2rem 0 3rem;
}

.th-section-title {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.th-section-sub {
    color: var(--th-muted);
    margin-bottom: 1.5rem;
}

.th-card .th-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.6rem;
    background: rgba(6, 182, 212, 0.14);
    color: var(--th-primary-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Login */
.th-login-card {
    border-radius: var(--th-radius) !important;
}

.th-login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

/* Domain search */
.domain-home-banner,
.home-domain-search,
#default-captcha-domainchecker {
    background: transparent !important;
    color: var(--th-fg);
}

/* Pagination */
.pagination .page-link {
    background: var(--th-card);
    border-color: var(--th-border);
    color: var(--th-muted-strong);
}

.pagination .page-item.active .page-link {
    background: var(--th-primary);
    border-color: var(--th-primary);
    color: var(--th-primary-ink);
}

/* Footer */
#footer,
#footer.footer,
#footer.th-footer {
    background: var(--th-bg-deep) !important;
    background-image: none !important;
    border: 0 !important;
    border-top: 1px solid var(--th-border) !important;
    color: var(--th-muted) !important;
    padding: 3.5rem 0 2rem;
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
}

.th-footer-heading {
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.th-footer-tagline {
    margin-top: 1rem;
    color: var(--th-muted);
    font-size: 0.9rem;
}

.th-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.th-footer-links li + li {
    margin-top: 0.45rem;
}

.th-footer-links a,
#footer .nav-link,
#footer a:not(.btn) {
    color: var(--th-muted) !important;
    font-size: 0.9rem;
}

.th-footer-links a:hover,
#footer .nav-link:hover,
#footer a:not(.btn):hover {
    color: #fff !important;
}

.th-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--th-border);
}

#footer .copyright,
footer.footer .copyright,
.th-footer-meta {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    text-align: left;
}

.th-footer-meta {
    margin-left: auto;
}

.th-footer-meta a {
    color: var(--th-primary);
    font-weight: 500;
}

.th-locale-btn {
    color: var(--th-muted) !important;
    border-color: var(--th-border) !important;
}

/* Custom main navigation */
#header .th-main-nav .dropdown-menu.th-dropdown-lg {
    min-width: 22rem;
    padding: 0.45rem !important;
}

#header .th-main-nav .dropdown-menu.th-dropdown-mega {
    min-width: 62rem;
    max-width: min(80rem, calc(100vw - 2rem));
    padding: 1rem 0.85rem 1.05rem !important;
}

#header .th-main-nav .th-mega-col {
    flex: 1 1 14rem;
    min-width: 13rem;
    list-style: none;
}

#header .th-main-nav .th-mega-col-certs,
#header .th-main-nav .th-mega-col-licenses {
    flex: 1.4 1 20rem;
    min-width: 18rem;
}

#header .th-main-nav .th-mega-heading {
    display: block;
    padding: 0.15rem 0.8rem 0.55rem;
    color: var(--th-primary-hover);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#header .th-main-nav .th-dropdown-mega .th-dd-item {
    padding: 0.55rem 0.8rem !important;
}

#header .th-main-nav .th-dropdown-mega .th-dd-title {
    font-size: 0.95rem;
}

#header .th-main-nav .th-dd-item {
    display: flex !important;
    align-items: flex-start;
    gap: 0.75rem;
    white-space: normal;
    line-height: 1.3;
}

#header .th-main-nav .th-dd-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(6, 182, 212, 0.14);
    color: var(--th-primary-hover);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

#header .th-main-nav .th-dd-title {
    display: block;
    color: #fff;
    font-weight: 600;
}

#header .th-main-nav .th-dd-desc {
    display: block;
    color: var(--th-muted);
    font-size: 0.75rem;
    font-weight: 400;
    margin-top: 0.15rem;
}

@media (min-width: 1200px) {
    #header .th-main-nav > .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    #header .th-main-nav > .dropdown.show > .dropdown-menu.th-dropdown-mega,
    #header .th-main-nav > .dropdown:hover > .dropdown-menu.th-dropdown-mega {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
    }

    #header .th-main-nav > .dropdown > .dropdown-menu::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -14px;
        height: 14px;
    }

    #header .th-main-nav .th-mega-col + .th-mega-col {
        border-left: 1px solid var(--th-border);
        padding-left: 0.75rem;
    }
}

@media (max-width: 1199px) {
    #header .th-main-nav .dropdown-menu.th-dropdown-mega {
        min-width: 0;
        width: 100%;
    }

    #header .th-main-nav .dropdown.show > .dropdown-menu.th-dropdown-mega {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    #header .th-main-nav .th-mega-col {
        min-width: 0;
    }
}

#header .th-main-nav > .collapsable-dropdown {
    display: none !important;
}

.th-card {
    border-radius: var(--th-radius) !important;
}

.th-card .card-title,
.th-card h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.th-card p,
.th-feature-grid p {
    color: var(--th-muted);
    margin-bottom: 1rem;
}

.th-card p strong {
    color: #e2e8f0;
    font-weight: 600;
}

a.th-card-link .btn {
    pointer-events: none;
}

a.th-card-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

a.th-card-link:hover {
    border-color: var(--th-primary) !important;
    color: inherit;
}

a.th-card-link:hover .card-title {
    color: var(--th-primary-hover);
}

.th-page-intro {
    padding: 2.5rem 0 1.5rem;
}

.th-cta {
    margin: 1rem 0 3rem;
    padding: 2.5rem;
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius);
    background:
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.16), transparent 46%),
        var(--th-card);
}

.th-cta-inner h2 {
    margin-bottom: 0.5rem;
}

.th-cta-inner p {
    color: var(--th-muted);
    max-width: 36rem;
    margin-bottom: 1.25rem;
}

.th-legal h2 {
    font-size: 1.15rem;
    margin: 2rem 0 0.75rem;
}

.th-legal h2:first-child {
    margin-top: 0;
}

.th-legal h3 {
    font-size: 1rem;
    margin: 1.25rem 0 0.5rem;
    color: var(--th-muted-strong);
}

.th-legal p {
    color: var(--th-muted);
    max-width: 46rem;
}

.th-legal a {
    color: var(--th-primary);
}

.action-icon-btns a {
    color: var(--th-muted-strong) !important;
    background: var(--th-card) !important;
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius) !important;
}

.action-icon-btns a .ico-container i {
    color: var(--th-primary-hover) !important;
}

.action-icon-btns a:hover {
    color: #fff !important;
    border-color: var(--th-primary) !important;
}

.action-icon-btns a:hover .ico-container i {
    color: var(--th-primary-hover) !important;
}

/* Domain Services landing */
.th-domain-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 44rem;
    margin: 1.5rem 0 0;
}

.th-domain-search .form-control {
    flex: 1 1 16rem;
    height: 3.15rem;
    border-radius: 0.85rem !important;
    font-size: 1.02rem;
}

.th-domain-search .btn {
    height: 3.15rem;
    border-radius: 0.85rem !important;
    padding: 0 1.35rem;
    white-space: nowrap;
}

.th-domain-search-hint {
    color: var(--th-muted);
    font-size: 0.85rem;
    margin: 0.7rem 0 0;
}

.th-domain-result {
    max-width: 44rem;
    margin: 1.35rem 0 0;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius);
    background: var(--th-card);
}

.th-domain-result h2 {
    color: #fff;
    font-size: 1.35rem;
    margin: 0 0 0.55rem;
    word-break: break-all;
}

.th-domain-result-label {
    display: inline-block;
    margin: 0 0 0.45rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.th-domain-result-available .th-domain-result-label {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
}

.th-domain-result-taken .th-domain-result-label {
    background: rgba(245, 158, 11, 0.16);
    color: #fcd34d;
}

.th-domain-result-error .th-domain-result-label {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}

.th-domain-result-price {
    color: var(--th-primary-hover);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.85rem;
}

.th-domain-result-price small {
    color: var(--th-muted);
    font-weight: 500;
}

.th-domain-result-copy {
    color: var(--th-muted-strong);
    margin: 0 0 0.85rem;
}

.th-domain-transfer-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.th-domain-transfer-form .form-control {
    flex: 1 1 14rem;
    height: 3.15rem;
    border-radius: 0.85rem !important;
}

.th-domain-transfer-form .btn,
.th-domain-result > .btn {
    height: 3.15rem;
    border-radius: 0.85rem !important;
    padding: 0 1.35rem;
    min-width: 11rem;
    width: auto;
}

.th-domain-result-error {
    color: #fca5a5;
    margin: 0.75rem 0 0;
}

.th-tld-chip {
    height: 100%;
    padding: 1rem 0.85rem;
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-sm);
    background: var(--th-card);
    text-align: center;
}

.th-tld-chip strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.th-tld-chip span {
    color: var(--th-primary-hover);
    font-size: 0.85rem;
}

/* Payment providers (invoice pay, saved cards, checkout wrappers) */
#paymentGatewaysContainer,
#paymentGatewaysContainer .radio-inline,
#paymentGatewaysContainer label,
#frmPayment .control-label,
#frmPayment .col-form-label,
#frmCreditCardDetails .control-label,
#frmCreditCardDetails .col-form-label {
    color: #f1f5f9 !important;
}

#paymentGatewaysContainer .text-muted {
    color: #cbd5e1 !important;
}

.cc-input-container,
#creditCardInputFields,
#paymentGatewayInput,
#stripeDynamicElements,
#stripeElements,
#payment-element {
    color: #e2e8f0;
}

#creditCardInputFields,
.cc-input-container {
    background: var(--th-card) !important;
    border-color: var(--th-border) !important;
}

#stripeCreditCard,
#stripeExpiryDate,
#stripeCvc,
.StripeElement {
    background: var(--th-bg-deep) !important;
    border-color: var(--th-border) !important;
    color: var(--th-fg) !important;
}

#frmCheckout.paypal_ppcpv-payment-form #creditCardInputFields,
#frmPayment.paypal_ppcpv-payment-form .paymethod-info:not([data-paymethod-id]),
#frmCheckout.paypal_ppcpv-payment-form #creditCardInputFields ul {
    background: var(--th-card) !important;
    border-color: var(--th-border) !important;
    color: var(--th-fg) !important;
}

#frmCheckout.paypal_ppcpv-payment-form #creditCardInputFields .paymethod-info,
#frmPayment.paypal_ppcpv-payment-form .paymethod-info[data-paymethod-id],
#frmCheckout.paypal_ppcpv-payment-form #creditCardInputFields .paymethod-info:nth-child(5n+1),
#frmCheckout.paypal_ppcpv-payment-form #creditCardInputFields .paymethod-info:nth-child(5n+4),
#frmPayment.paypal_ppcpv-payment-form .paymethod-info[data-paymethod-id]:nth-child(5n+1),
#frmPayment.paypal_ppcpv-payment-form .paymethod-info[data-paymethod-id]:nth-child(5n+4) {
    border-color: var(--th-border) !important;
    color: var(--th-fg) !important;
}

.paypal_ppcpv-payment-form .payer-email,
.paypal_ppcpv-payment-form .payer-label,
.paypal_ppcpv-payment-form .payment-instructions {
    color: var(--th-muted-strong) !important;
}

.paypal_ppcpv-payment-form .selected {
    background-color: rgba(6, 182, 212, 0.14) !important;
}

/* Certificate catalog */
.th-cert-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 2rem;
}

.th-cert-subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--th-border);
    border-radius: 999px;
    background: var(--th-card);
    color: #e2e8f0 !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
}

.th-cert-subnav-link span {
    color: var(--th-muted);
    font-weight: 500;
}

.th-cert-subnav-link:hover,
.th-cert-subnav-link.is-active {
    border-color: var(--th-primary);
    background: rgba(6, 182, 212, 0.14);
    color: #fff !important;
}

.th-cert-vendor {
    margin-bottom: 2rem;
}

.th-cert-vendor-title {
    color: #fff;
    font-size: 1.25rem;
    margin: 0 0 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--th-border);
}

.th-cert-card .card-body {
    display: flex;
    flex-direction: column;
}

.th-cert-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.th-cert-vendor-label,
.th-cert-validation {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.th-cert-vendor-label {
    background: rgba(6, 182, 212, 0.14);
    color: var(--th-primary-hover);
}

.th-cert-validation {
    position: relative;
    background: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
    cursor: help;
}

.th-cert-card,
.th-cert-card .card-body {
    overflow: visible;
}

.th-cert-validation::after {
    content: attr(data-tip);
    position: absolute;
    left: 0;
    top: calc(100% + 0.45rem);
    z-index: 20;
    width: max-content;
    max-width: 16.5rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--th-border);
    border-radius: 0.55rem;
    background: #0a111e;
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: none;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.th-cert-validation:hover::after,
.th-cert-validation:focus::after,
.th-cert-validation:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.th-cert-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
}

.th-cert-price strong {
    display: block;
    color: #fff;
    font-size: 1.2rem;
}

.th-cert-price small {
    display: block;
    color: var(--th-muted);
}

.th-license-year {
    margin-top: 0.2rem;
}

.th-cert-empty {
    padding: 2rem 0 1rem;
    color: var(--th-muted);
}

.th-cert-preview {
    margin: 1.75rem 0 0.25rem;
    max-width: 36rem;
}

.th-mock {
    margin: 0;
    border: 1px solid var(--th-border);
    border-radius: 1rem;
    background:
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.14), transparent 48%),
        #0a111e;
    overflow: hidden;
}

.th-mock-chrome {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.85rem;
    background: #111827;
    border-bottom: 1px solid var(--th-border);
}

.th-mock-chrome span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #334155;
}

.th-mock-chrome span:nth-child(1) { background: #f87171; }
.th-mock-chrome span:nth-child(2) { background: #fbbf24; }
.th-mock-chrome span:nth-child(3) { background: #34d399; }

.th-mock-chrome em {
    margin-left: 0.5rem;
    color: var(--th-muted);
    font-size: 0.75rem;
    font-style: normal;
}

.th-mock-url {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.85rem 0.85rem 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--th-border);
    border-radius: 999px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.th-mock-url i {
    color: var(--th-success);
}

.th-mock-url b {
    color: var(--th-muted);
    font-weight: 500;
}

.th-mock-certbox {
    margin: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(6, 182, 212, 0.28);
    border-radius: 0.75rem;
    background: rgba(6, 182, 212, 0.08);
}

.th-mock-certbox strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
}

.th-mock-certbox small {
    display: block;
    color: var(--th-muted);
    margin: 0.2rem 0 0.55rem;
}

.th-mock-certbox em {
    color: var(--th-primary-hover);
    font-style: normal;
}

.th-mock-certbox ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.th-mock-certbox li {
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 0.15rem 0 0.15rem 1rem;
    position: relative;
}

.th-mock-certbox li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--th-primary);
}

.th-mock-mail-head,
.th-mock-inbox-row,
.th-mock-dialog-body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem 0;
}

.th-mock-avatar,
.th-mock-dot,
.th-mock-logo,
.th-mock-app {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.7rem;
    background: rgba(6, 182, 212, 0.16);
    color: var(--th-primary-hover);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.th-mock-logo {
    position: relative;
    border-radius: 0.55rem;
    background: transparent;
    padding: 0;
    overflow: visible;
}

.th-mock-logo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
}

.th-mock-verified {
    position: absolute;
    right: -0.15rem;
    bottom: -0.15rem;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    background: var(--th-success);
    color: #052e16;
    font-size: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.th-mock-mail-head strong,
.th-mock-inbox-row strong,
.th-mock-dialog-body strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
}

.th-mock-mail-head small,
.th-mock-inbox-row small {
    color: var(--th-muted);
}

.th-mock-badges {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.th-mock-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.th-mock-pill-ok {
    background: rgba(52, 211, 153, 0.16);
    color: #6ee7b7;
}

.th-mock-subject {
    margin: 0.85rem 1rem 0;
    color: #fff;
    font-weight: 600;
}

.th-mock-body,
.th-mock-dialog-body p {
    margin: 0.35rem 1rem 1rem;
    color: var(--th-muted);
    font-size: 0.9rem;
}

.th-mock-dialog-body p {
    margin: 0.15rem 0 0;
}

.th-mock-dialog-body span,
.th-mock-ok {
    color: #6ee7b7 !important;
}

.th-mock-inbox-row {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--th-border);
}

.th-mock-inbox-row:first-of-type,
.th-mock-inbox .th-mock-chrome + .th-mock-inbox-row {
    border-top: 0;
}

.th-mock-inbox-row.is-featured {
    background: rgba(6, 182, 212, 0.08);
}

.th-mock-inbox-row em {
    margin-left: auto;
    color: var(--th-muted);
    font-size: 0.75rem;
    font-style: normal;
}

.th-mock-dot {
    border-radius: 50%;
    background: #1e293b;
    color: #94a3b8;
    font-size: 0.8rem;
}

.th-mock-store-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0 0.75rem;
}

.th-mock-store-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    color: #cbd5e1;
}

.th-mock-store-list li i {
    color: var(--th-primary-hover);
    width: 1.1rem;
}

.th-mock-store-list li.is-active {
    background: rgba(6, 182, 212, 0.1);
    color: #fff;
}

.th-cert-preview-caption {
    margin: 0.7rem 0 0;
    color: var(--th-muted);
    font-size: 0.85rem;
}

@media (max-width: 575px) {
    .th-mock-badges {
        margin-left: 0;
        width: 100%;
    }

    .th-mock-mail-head {
        flex-wrap: wrap;
    }
}

.th-cert-footer {
    align-items: center;
}

.th-product-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.th-cart-icon-btn {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.65rem;
    border: 1px solid var(--th-border);
    background: rgba(6, 182, 212, 0.1);
    color: var(--th-primary-hover);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.th-cart-icon-btn:hover {
    border-color: var(--th-primary);
    background: rgba(6, 182, 212, 0.2);
    color: #fff;
}

.th-cart-qty-wrap {
    display: none;
}

.th-cart-qty {
    min-width: 4.5rem;
    height: 2.45rem;
    border-radius: 0.65rem;
    border: 1px solid var(--th-primary);
    background: #0a111e;
    color: #fff;
    padding: 0 0.45rem;
}

.th-product-actions.is-selected .th-cart-icon-btn {
    display: none;
}

.th-product-actions.is-selected .th-cart-qty-wrap {
    display: block;
}

.th-shop-panel {
    max-width: none;
    width: 100%;
    margin: 0 0 2.5rem;
    padding: 1.5rem;
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius);
    background: var(--th-card);
}

.th-shop-panel .form-group label,
.th-shop-panel legend {
    color: #fff;
    font-weight: 600;
}

.th-shop-panel .form-control {
    background: #0a111e;
    border-color: var(--th-border);
    color: #fff;
}

.th-optional {
    color: var(--th-muted);
    font-weight: 400;
}

.th-shop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.th-cart-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.th-cart-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--th-border);
}

.th-cart-row span,
.th-cart-row a,
.th-cart-remove {
    display: block;
    color: var(--th-muted);
    font-size: 0.85rem;
}

.th-cart-row-side {
    text-align: right;
}

.th-status {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff !important;
    background: rgba(148, 163, 184, 0.18);
}

.th-status-progress,
.th-status-active {
    background: rgba(6, 182, 212, 0.2);
    color: #67e8f9 !important;
}

.th-status-done,
.th-status-paid {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac !important;
}

.th-status-warn,
.th-status-unpaid,
.th-status-cancelled,
.th-status-pending {
    background: rgba(245, 158, 11, 0.16);
    color: #fcd34d !important;
}

.th-repair-status-row {
    align-items: flex-start;
}

.th-cart-remove {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.th-cart-remove:hover,
.th-cart-row a:hover {
    color: #fff;
}

.th-cart-subtitle {
    color: #fff;
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
}

.th-cart-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1.25rem;
    color: #fff;
    font-size: 1.05rem;
}

.th-cart-empty .btn {
    margin-right: 0.5rem;
}

.th-calc-wrap {
    max-width: none;
    width: 100%;
    margin: 0 0 3rem;
    padding: 1.75rem;
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius);
    background:
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.12), transparent 42%),
        var(--th-card);
}

.th-calc-intro,
.th-calc-hint {
    color: var(--th-muted);
    margin: 0 0 1rem;
}

.th-calc-pane h2 {
    color: #fff;
    font-size: 1.35rem;
    margin: 0 0 0.35rem;
}

.th-calc-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    list-style: none;
    margin: 0 0 1.35rem;
    padding: 0;
}

.th-calc-progress-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 575.98px) {
    .th-calc-progress-4 {
        gap: 0.35rem;
    }

    .th-calc-progress-4 li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.3rem;
        font-size: 0.72rem;
    }
}

.th-calc-progress li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--th-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.th-calc-progress span {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    border: 1px solid var(--th-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0a111e;
}

.th-calc-progress .is-active,
.th-calc-progress .is-done {
    color: #fff;
}

.th-calc-progress .is-active span,
.th-calc-progress .is-done span {
    border-color: var(--th-primary);
    background: rgba(6, 182, 212, 0.18);
    color: var(--th-primary-hover);
}

.th-calc-progress .is-done span {
    background: var(--th-primary);
    color: var(--th-primary-ink);
}

.th-calc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.th-calc-tile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    min-width: 0;
    padding: 1rem 1.05rem 1.05rem 2.6rem;
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-sm);
    background: #0a111e;
    color: #e2e8f0;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.th-calc-tile:hover {
    border-color: var(--th-primary);
    transform: translateY(-1px);
}

.th-calc-tile input {
    position: absolute;
    left: 0.9rem;
    top: 1.15rem;
    accent-color: var(--th-primary);
}

.th-calc-tile i {
    position: absolute;
    right: 0.9rem;
    top: 0.95rem;
    color: var(--th-primary-hover);
}

.th-calc-tile strong {
    color: #fff;
    padding-right: 1.6rem;
    overflow-wrap: anywhere;
}

.th-calc-tile small {
    color: var(--th-muted);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.th-calc-tile:has(input:checked) {
    border-color: var(--th-primary);
    background: rgba(6, 182, 212, 0.12);
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.25);
}

.th-calc-tile.is-disabled {
    opacity: 0.42;
    cursor: not-allowed;
    pointer-events: none;
}

.th-calc-tile.is-disabled:hover {
    border-color: var(--th-border);
    transform: none;
}

.th-calc-tile.is-disabled img {
    filter: grayscale(0.4);
}

.th-calc-pane[hidden],
.th-calc-tile[hidden],
.th-calc-numbers label[hidden] {
    display: none !important;
}

.th-calc-tile-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
    padding-left: 2.6rem;
}

.th-calc-tile-row i {
    position: static;
    flex: 0 0 auto;
    margin-top: 0.15rem;
}

.th-calc-tile-row span {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.2rem;
}

.th-calc-numbers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.th-calc-numbers label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-sm);
    background: #0a111e;
    color: #fff;
    font-weight: 600;
}

.th-calc-numbers .form-control {
    background: #071018;
    border-color: var(--th-border);
    color: #fff;
    font-size: 1.35rem;
    height: 3rem;
}

.th-calc-numbers small {
    color: var(--th-muted);
    font-weight: 400;
}

.th-calc-extras {
    display: grid;
    gap: 0.75rem;
}

.th-calc-error {
    color: var(--th-danger);
    margin: 0.85rem 0 0;
}

.th-calc-needs,
.th-calc-split {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1.25rem;
}

.th-calc-needs span,
.th-calc-split span {
    display: inline-flex;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.14);
    color: var(--th-primary-hover);
    font-size: 0.8rem;
    font-weight: 700;
}

.th-calc-split span {
    background: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
}

.th-calc-total {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.85rem;
    margin: 0.5rem 0 0.25rem;
}

.th-calc-total div {
    padding: 1rem 1.15rem;
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-sm);
    background: #0a111e;
}

.th-calc-total span {
    display: block;
    color: var(--th-muted);
    font-size: 0.85rem;
}

.th-calc-total strong {
    color: #fff;
    font-size: 1.35rem;
}

.th-repair-models,
.th-repair-device-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.th-repair-family-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.th-repair-device-tile {
    align-items: center;
    text-align: center;
    min-width: 0;
    padding: 0.85rem 0.7rem 0.95rem;
    overflow: hidden;
}

.th-repair-device-tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.th-repair-device-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 5.4rem;
    width: 100%;
    max-width: 100%;
    height: 5.4rem;
    margin-bottom: 0.5rem;
    background: transparent;
    overflow: hidden;
}

.th-repair-device-photo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.th-repair-device-tile strong {
    padding-right: 0;
}

.th-repair-device-tile small {
    display: block;
}

@media (max-width: 991px) {
    .th-repair-models,
    .th-repair-device-grid,
    .th-repair-family-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.th-repair-note {
    margin: 1.15rem 0 0;
}

.th-repair-note label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.th-repair-note .form-control {
    background: #071018;
    border-color: var(--th-border);
    color: #fff;
}

.th-repair-result {
    margin: 1.25rem 0 0;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-sm);
    background: #0a111e;
}

.th-repair-device {
    margin: 0 0 0.65rem;
    color: var(--th-primary-hover);
    font-weight: 700;
}

.th-repair-result ul {
    margin: 0 0 0.85rem;
    padding-left: 1.15rem;
    color: #e2e8f0;
}

.th-repair-result .th-calc-total {
    margin: 0;
}

.th-repair-option-stack {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.th-repair-options {
    padding: 1rem 1.05rem;
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-sm);
    background: #071018;
}

.th-repair-options-title {
    margin: 0 0 0.75rem;
    color: #fff;
    font-weight: 700;
}

.th-repair-open {
    margin: 1.15rem 0 0;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: var(--th-radius-sm);
    background: rgba(251, 191, 36, 0.08);
}

.th-repair-open p {
    margin: 0;
    color: #f8fafc;
    line-height: 1.55;
}

.th-repair-open-accept {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0.85rem 0 0;
    color: #e2e8f0;
    cursor: pointer;
}

.th-repair-open-accept input {
    margin-top: 0.2rem;
    accent-color: var(--th-primary);
}

.th-repair-open .th-calc-error {
    margin: 0.7rem 0 0;
}

.th-repair-delivery {
    margin: 1.25rem 0 0;
}

.th-repair-delivery h3 {
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 1.05rem;
}

.th-repair-carrier-group {
    margin: 0.85rem 0 0;
}

.th-repair-carrier-group:first-child {
    margin-top: 0.35rem;
}

.th-repair-carrier-group h4 {
    margin: 0 0 0.45rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.th-repair-warranty {
    margin: 1.15rem 0 0;
    color: var(--th-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.th-account-panel {
    max-width: none;
    width: 100%;
}

.th-account-heading {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
}

.th-account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

.th-account-note {
    margin: 0 0 1rem;
}

.th-account-toolbar {
    margin: 0 0 1.25rem;
}

.th-account-generate {
    margin-top: 0.75rem;
}

.th-shop-panel .custom-select,
.th-shop-panel select.form-control {
    background: #0a111e;
    border-color: var(--th-border);
    color: #fff;
}

.th-cart-row-side a.disabled {
    opacity: 0.4;
    pointer-events: none;
}

body.th-email-popup {
    min-height: 100vh;
    padding: 1.5rem;
    background: var(--th-bg);
}

.th-email-panel {
    max-width: 48rem;
    margin: 0 auto;
}

.modal-localisation .item-selector button.item {
    width: 100%;
    background: transparent;
}

.th-consent {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    max-width: 28rem;
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius);
    background: var(--th-card);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.th-consent p {
    margin: 0 0 0.9rem;
    color: var(--th-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.th-consent a {
    color: var(--th-primary-hover);
}

.th-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

@media (max-width: 575px) {
    .th-consent {
        right: 0.75rem;
        left: 0.75rem;
        bottom: 0.75rem;
        max-width: none;
    }
}

.th-email-frame {
    display: block;
    margin: 0 0 1rem;
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-sm);
    background: #fff;
}

@media (max-width: 767px) {
    .th-calc-grid,
    .th-calc-numbers,
    .th-account-grid {
        grid-template-columns: 1fr;
    }

    .th-repair-models,
    .th-repair-device-grid,
    .th-repair-family-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .th-calc-progress {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .th-calc-progress-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .th-calc-progress li {
        font-size: 0.75rem;
        gap: 0.3rem;
    }

    .th-calc-progress span {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }

    .th-calc-wrap {
        padding: 1.15rem;
        overflow-x: hidden;
    }
}
