/* Tracker Networks · Modern 2026
 * An additive presentation layer. Joomla owns content, prices and navigation.
 * Loaded after the existing template so the change is independently reversible.
 */
:root {
  --tn-navy: #0b1927;
  --tn-navy-soft: #122635;
  --tn-ink: #182f3d;
  --tn-muted: #647581;
  --tn-teal: #a5f1cc;
  --tn-green: #126348;
  --tn-line: #dfe7e8;
  --tn-paper: #f5f8f7;
  --tn-width: 1220px;
  --tn-font: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
html.tn-modern { background: var(--tn-navy); scroll-behavior: smooth; scroll-padding-top: 24px; }
body.site.tn-modern {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--tn-paper) !important;
  color: var(--tn-ink);
  font-family: var(--tn-font);
  font-size: 15px;
  line-height: 1.65;
  --body-font-size: 15px;
  --body-color: var(--tn-ink);
  --body-bg: var(--tn-paper);
  --cassiopeia-font-family-body: var(--tn-font);
  --cassiopeia-font-family-headings: var(--tn-font);
  --cassiopeia-color-primary: var(--tn-green);
  --cassiopeia-color-link: #14634f;
  --cassiopeia-color-hover: #084737;
  --template-link-color: #14634f;
}
.tn-modern :is(h1, h2, h3, h4, h5, h6) { font-family: var(--tn-font); color: var(--tn-ink); text-shadow: none; line-height: 1.2; }
.tn-modern a { color: var(--tn-green); text-decoration: none; }
.tn-modern a:hover { color: #084737; }
.tn-modern :is(a, button, input, select, textarea):focus-visible { outline: 3px solid #24b88d; outline-offset: 4px; }
.tn-modern :is(p, ul, ol) { margin-bottom: 1em; }
.tn-modern img { max-width: 100%; height: auto; }
.tn-shell { width: min(var(--tn-width), calc(100% - 64px)); margin-inline: auto; }
.tn-eyebrow { display: block; margin: 0 0 16px; color: var(--tn-green); font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: .17em; text-transform: uppercase; }

/* Header: retain the real Joomla menu, Bootstrap collapse and MetisMenu. */
body.tn-modern > .container-header {
  z-index: 1020;
  position: relative;
  inset-block-start: auto;
  background: var(--tn-navy);
  color: #e8f3f0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  display: block;
}
.tn-header-utility {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 20px;
  min-height: 36px;
  padding-block: 7px;
  border-bottom: 1px solid #ffffff12;
  color: #aabcc7;
  font-size: 11px;
  line-height: 1.5;
}
.tn-header-utility :is(.ylafirma, .ylaslogan, .ylaemail) { margin: 0; color: inherit; white-space: normal; font: inherit; }
.tn-header-utility .ylafirma { display: none; }
.tn-utility-links { display: flex; align-items: center; flex: 1; gap: 24px; min-width: 0; }
.tn-language-links { display: flex; align-items: center; gap: 12px; }
.tn-language-links a { display: flex; }
.tn-language-links img { width: 17px; height: auto; border-radius: 2px; }
.tn-modern [hidden] { display: none !important; }
.tn-header-utility .ylaslogan { margin-right: auto; }
.tn-header-utility .ylaslogan::before { content: ""; display: inline-block; margin-right: 8px; width: 5px; height: 5px; vertical-align: 2px; border-radius: 50%; background: var(--tn-teal); }
.tn-modern .tn-header-utility a { color: #b7c9d2; }
.tn-modern .tn-header-utility a:hover { color: white; }
.tn-header-utility > a img { width: 17px; border-radius: 2px; }
.tn-header-main { display: flex; gap: 36px; align-items: center; justify-content: space-between; min-height: 82px; }
.tn-modern a.tn-brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 11px; color: white; text-decoration: none; }
.tn-brand-mark { position: relative; display: block; width: 36px; height: 38px; border: 1px solid #9aeac87a; border-radius: 10px; background: #a5f1cc10; }
.tn-brand-mark::before, .tn-brand-mark::after { content: ""; position: absolute; left: 9px; top: 9px; width: 16px; height: 6px; border: 2px solid var(--tn-teal); border-radius: 2px; transform: skewY(-18deg); }
.tn-brand-mark::after { top: 20px; }
.tn-brand-name { display: inline-flex; align-items: baseline; white-space: nowrap; font-weight: 800; font-size: 18px; letter-spacing: .035em; line-height: 1.15; }
.tn-brand-hyphen { margin-inline: 2px; color: var(--tn-teal); font-weight: 600; }
.tn-brand-network { color: #d9e9e8; font-weight: 550; }
.tn-modern .tn-nav.navbar { display: flex; flex: 0 1 auto; flex-wrap: wrap; padding: 0; margin: 0; line-height: 1.4; }
.tn-modern .tn-nav .mod-menu { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.tn-modern .tn-nav .mod-menu > li { display: flex; align-items: center; padding: 0; margin: 0; }
.tn-modern .tn-nav .mod-menu > li > a { padding: 14px 10px; color: #c0cdd6; font-size: 13px; line-height: 1.4; font-weight: 500; }
.tn-modern .tn-nav .mod-menu > li > a:hover, .tn-modern .tn-nav .mod-menu > li.active > a { color: var(--tn-teal); }
.tn-modern .tn-nav .mod-menu > li:last-child { margin-left: 12px; }
.tn-modern .tn-nav .mod-menu > li:last-child > a { padding: 10px 19px; border: 1px solid #48615f; border-radius: 7px; color: var(--tn-teal); }
.tn-modern .tn-nav .mm-toggler { color: #c0cdd6; padding: 8px; width: 24px; margin-right: 5px; background: none; border: none; }
.tn-modern .tn-nav .mod-menu .mm-collapse { min-width: 238px; padding: 8px; border: 1px solid #dce6e6; border-radius: 10px; background: #fff; color: var(--tn-ink); box-shadow: 0 16px 42px #08182730; }
.tn-modern .tn-nav .mod-menu .mm-collapse .metismenu-item { padding: 0; }
.tn-modern .tn-nav .mod-menu .mm-collapse .metismenu-item a { display: block; padding: 10px 13px; color: var(--tn-ink); line-height: 1.35; font-size: 13px; border-radius: 5px; }
.tn-modern .tn-nav .mod-menu .mm-collapse .metismenu-item a:hover { background: #eaf5ee; color: var(--tn-green); }
.tn-modern .tn-nav .navbar-toggler { width: 44px; height: 42px; padding: 8px; border: 1px solid #435766; border-radius: 7px; color: white; }
.tn-modern .tn-nav .navbar-toggler span { color: white; }
.tn-modern .container-topbar { background: transparent; padding: 0; margin: 0; }
.tn-modern .container-topbar #mod-custom205 > div { background: transparent !important; }
.tn-header-search { padding-bottom: 14px; }
.tn-modern .tn-header-search #spinnin-button { margin: 0; width: 100%; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.tn-header-search .ylakirjoitatunnus { color: #b7c9d2; font: 12px var(--tn-font); margin: 0; }
.tn-header-search .ylahaetunnus { width: 205px; height: 37px; padding: 8px 12px; margin: 0; font: 13px var(--tn-font); color: var(--tn-ink); background: #fff; border: 1px solid #dce7e7; border-radius: 5px; text-align: left; }
.tn-header-search .ylasaatavuushaku { min-height: 37px; height: auto; padding: 8px 16px; margin: 0; color: #102a21; background: var(--tn-teal); border: 0; border-radius: 5px; font: 600 12px var(--tn-font); }

/* A quiet technical illustration, drawn as vectors and CSS by the theme. */
.tn-hero { position: relative; background: var(--tn-navy); color: #edf6f4; padding: 43px 0 0; margin: 0 0 52px; isolation: isolate; }
.tn-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 78% 40%, #21625c36, transparent 48%); }
.tn-hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 44px; min-height: 345px; padding-bottom: 55px; }
.tn-hero-copy { padding-top: 4px; }
.tn-hero .tn-eyebrow { color: var(--tn-teal); }
.tn-hero h1 { margin: 0 0 24px; color: #f2f7f5; font-size: clamp(46px, 5.5vw, 76px); font-weight: 600; letter-spacing: -.058em; line-height: 1.03; text-shadow: none; }
.tn-hero h1 span { color: var(--tn-teal); }
.tn-hero-copy > p:not(.tn-eyebrow) { max-width: 455px; margin-bottom: 25px; font-size: 16px; line-height: 1.8; color: #aabdc8; }
.tn-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.tn-hero-actions a { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: #d9e9e8; }
.tn-hero-actions a:first-child { padding: 13px 21px; color: #122d24; background: var(--tn-teal); border-radius: 7px; }
.tn-hero-actions a:first-child::after { content: "↗"; font-size: 18px; line-height: 1; }
.tn-hero-actions a:hover { color: #fff; }
.tn-hero-actions a:first-child:hover { background: #c3f9df; color: #122d24; }
.tn-network-art { position: relative; min-width: 0; width: 100%; max-width: 485px; justify-self: end; }
.tn-network-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.tn-network-art text { font-family: var(--tn-font); }
.tn-network-tag { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 15px; background: #16312ff0; border: 1px solid #5b978260; border-radius: 7px; color: #c3e9d8; font: 10px Consolas, monospace; letter-spacing: .06em; box-shadow: 0 10px 25px #04140f25; }
.tn-network-tag-domain { top: 22%; left: 4%; transform: rotate(-5deg); }
.tn-network-tag-hosting { right: 0; bottom: 19%; transform: rotate(3deg); }
.tn-status-dot { width: 5px; height: 5px; border-radius: 50%; background: #a5f1cc; box-shadow: 0 0 9px #a5f1cc50; }
.tn-server-stack { position: absolute; top: 43%; left: 28%; width: 42%; transform: rotate(-6deg); }
.tn-server-unit { display: flex; gap: 5px; align-items: center; height: 36px; padding: 0 13px; margin-bottom: 5px; border: 1px solid #5c8e826e; border-radius: 6px; background: linear-gradient(130deg, #315e50, #102e2c); box-shadow: 5px 7px 0 #071d1d60; }
.tn-server-unit i { width: 3px; height: 3px; border-radius: 50%; background: #b5ffd2; }
.tn-server-unit span { margin-left: auto; width: 49%; height: 4px; border-radius: 4px; background: #6c99846e; }
.tn-server-stack small { display: block; margin-top: 10px; font: 8px Consolas, monospace; letter-spacing: .18em; color: #84afa1; text-align: center; }
.tn-domain-panel { position: relative; padding: 27px 30px 21px; color: var(--tn-ink); background: #fff; border: 1px solid var(--tn-line); border-radius: 12px; box-shadow: 0 14px 35px #142e3912; transform: translateY(43px); margin-top: -43px; }
.tn-domain-panel > :is(h2, h3, label, .tn-domain-label) { display: block; margin: 0 0 13px; font-size: 15px; font-weight: 600; color: var(--tn-ink); letter-spacing: -.02em; }
.tn-domain-panel #spinnin-button { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px 12px; width: 100%; padding: 0; margin: 0; text-align: left; }
.tn-domain-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.tn-domain-heading .tn-eyebrow { margin: 0; font-size: 9px; }
.tn-domain-heading h2 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.tn-hero .tn-domain-heading .tn-eyebrow { color: #37765b; }
.tn-domain-form .tn-domain-label { grid-column: 1 / -1; color: #697d85; font-size: 12px; }
.tn-header-search .tn-domain-label { color: #b7c9d2; font-size: 12px; }
.tn-domain-panel .ylakirjoitatunnus { color: var(--tn-ink); font: 600 15px var(--tn-font); white-space: normal; margin: 0; }
.tn-domain-panel .ylahaetunnus { flex: 1; min-width: 0; width: auto; height: 53px; margin: 0; padding: 15px 18px; border: 1px solid #d3dfdf; border-radius: 7px; background: #f6f9f8; color: var(--tn-ink); font: 400 15px var(--tn-font); text-align: left; }
.tn-domain-panel .ylahaetunnus:focus { border-color: #3a9c78; outline: 2px solid #a5f1cc99; outline-offset: 1px; }
.tn-domain-panel .ylasaatavuushaku { flex: 0 0 auto; width: auto; height: 53px; padding: 14px 26px; margin: 0; border: none; border-radius: 7px; background: var(--tn-navy); color: #fff; font: 600 14px var(--tn-font); line-height: 1.4; text-align: center; }
.tn-domain-panel .ylasaatavuushaku:hover { background: #21453b; }
.tn-domain-prices { display: flex; flex-wrap: wrap; gap: 12px 0; padding-top: 18px; }
.tn-domain-prices a { padding: 0 22px; color: #586d77; font-size: 12px; line-height: 1.5; border-right: 1px solid #dce7e7; }
.tn-domain-prices a:first-child { padding-left: 0; }
.tn-domain-prices a:last-child { border-right: 0; }
.tn-domain-prices a:hover { color: #125c44; }
.tn-domain-prices img { display: none; }
.tn-domain-panel .ylatulokset { width: 100%; margin-top: 10px; font-size: 14px; }
.tn-modern .blink, .tn-modern .blinkok, .tn-modern .blinkinfo { animation: none; }
.tn-modern .blink { color: #b63d31; }
.tn-modern .blinkok { color: #146348; }
.tn-modern .blinkinfo { color: #98600a; }

/* Existing Joomla component and all of its data remain the source of truth. */
.tn-modern .site-grid { width: min(var(--tn-width), calc(100% - 64px)); margin: 0 auto; padding: 42px 0 60px; flex: 1 0 auto; gap: 28px; grid-template-columns: minmax(0, 1fr); grid-template-areas: none; }
.tn-modern .site-grid > .grid-child { grid-area: auto !important; min-width: 0; width: 100%; max-width: none; }
.tn-modern.has-sidebar-left .site-grid { grid-template-columns: minmax(190px, .26fr) minmax(0, 1fr); }
.tn-modern.has-sidebar-right .site-grid { grid-template-columns: minmax(0, 1fr) minmax(190px, .26fr); }
.tn-modern.has-sidebar-left.has-sidebar-right .site-grid { grid-template-columns: minmax(170px, .23fr) minmax(0, 1fr) minmax(170px, .23fr); }
.tn-modern .container-component { grid-column: auto; grid-row: auto; padding: 0; margin: 0; }
.tn-modern .container-sidebar-left, .tn-modern .container-sidebar-right { grid-column: auto; grid-row: auto; }
.tn-modern .container-banner, .tn-modern .container-top-a, .tn-modern .container-top-b, .tn-modern .container-bottom-a, .tn-modern .container-bottom-b { grid-column: 1 / -1; }
.tn-modern .site-grid > :is(.container-banner, .container-top-a, .container-top-b, .container-bottom-a, .container-bottom-b) { grid-column: 1 / -1 !important; }
.tn-modern .card { border: 1px solid var(--tn-line); background: #fff; border-radius: 10px; box-shadow: none; }
.tn-modern .page-header { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--tn-line); }
.tn-modern .page-header > :is(h1, h2) { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -.035em; }
.tn-modern .com-content-article__body { line-height: 1.8; }
.tn-modern .com-content-article__body > :is(h1, h2, h3) { margin-bottom: 18px; font-size: 30px; }
body.tn-modern:not(.tn-home) .com-content-article__body { max-width: 1050px; }
.tn-home .com-content-article__body { max-width: none; }
.tn-modern .container-component > main { margin-top: 0; }
.tn-modern .com-content-article__body > :is(p, ul, ol) { margin-bottom: 20px; }
.tn-home .site-grid { padding-top: 64px; }
.tn-section-heading { margin-bottom: 30px; }
.tn-section-heading h2 { font-size: clamp(25px, 3vw, 37px); font-weight: 600; letter-spacing: -.04em; margin: 0 0 13px; }
.tn-section-heading p:not(.tn-eyebrow) { max-width: 650px; margin: 0; color: var(--tn-muted); font-size: 14px; }
.tn-modern .snip1517 { width: 100%; max-width: none !important; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch !important; gap: 18px; margin: 0; color: var(--tn-ink); font-family: var(--tn-font); text-align: left; }
.tn-modern .snip1517 .plan { float: none; display: flex; flex-direction: column; position: relative; width: auto !important; min-width: 0; max-width: none !important; padding: 24px 23px 21px; margin: 0 !important; border: 1px solid var(--tn-line); border-radius: 11px; background: #fff; box-shadow: 0 4px 9px #0a2a3b03; overflow: visible; z-index: auto; }
.tn-modern .snip1517 .plan:hover,
.tn-modern .snip1517 .plan:focus-within { border-color: #8fbea9; background: #f1f9f4; box-shadow: 0 12px 25px #103e3110; }
.tn-modern .snip1517 .plan header { color: var(--tn-ink); padding: 0; margin: 0 0 22px; min-height: 190px; line-height: 1.5; background: transparent; }
.tn-modern .snip1517 .plan-title { padding: 0; margin: 0 0 9px; min-height: 43px; color: var(--tn-ink); letter-spacing: -.02em; font-size: 19px; font-weight: 650; line-height: 1.22; }
.tn-modern .snip1517 .plan span[style] { background: transparent !important; color: inherit !important; }
.tn-modern .tn-plan-description { color: var(--tn-muted); font-size: 12px; line-height: 1.65; margin: 0 0 16px; min-height: 40px; }
.tn-modern .snip1517 .plan-cost { margin: 0; padding: 0; min-height: 67px; color: var(--tn-ink); line-height: 1.35; }
.tn-modern .snip1517 .plan-price { display: inline; font-size: 36px; font-weight: 600; letter-spacing: -.06em; line-height: 1.25; }
.tn-modern .snip1517 .plan-type { font-size: 11px; font-weight: 400; color: #647581; opacity: 1; letter-spacing: 0; padding-left: 3px; line-height: 1.5; }
.tn-modern .snip1517 .plan-features { flex: 1; list-style: none; text-indent: 0; padding: 20px 0 14px; margin: 0; border-top: 1px solid #e3ebe8; font-size: 12px; line-height: 1.7; color: #516672; }
.tn-modern .snip1517 .plan-features li { position: relative; padding: 4px 0 4px 17px; margin: 0; }
.tn-modern .snip1517 .plan-features li::before { content: "✓"; position: absolute; left: 0; top: 4px; font-size: 12px; color: #398361; }
.tn-modern .snip1517 .plan-features li span[style*="#2dc26b"] { display: none; }
.tn-modern .snip1517 .plan-select { margin-top: auto; padding: 15px 0 0; border: 0; text-align: left; }
.tn-modern .snip1517 .plan-select a { display: flex; justify-content: space-between; align-items: center; padding: 11px 15px; width: 100%; color: var(--tn-ink); background: #fff; border: 1px solid #cfddd7; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
.tn-modern .snip1517 .plan-select a::after { content: "↗"; font-size: 17px; }
.tn-modern .snip1517 .plan-select a:hover,
.tn-modern .snip1517 .plan-select a:focus-visible { background: #fff !important; color: #156dab; border-color: #8fbea9; }
.tn-package-notes { margin: 24px 0 45px; padding: 21px 24px; background: #edf2ef; border: 1px solid #e1e8e3; border-radius: 9px; color: #5d6f74; font-size: 12px; line-height: 1.85; }
.tn-package-notes :is(span, em, strong) { color: inherit !important; font-family: var(--tn-font) !important; font-size: inherit !important; font-style: normal; }
.tn-package-notes p { margin: 0; }
.tn-package-notes strong { font-weight: 600; }
.tn-game-banner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) .65fr; align-items: center; gap: 35px; overflow: hidden; padding: 44px 48px; margin: 42px 0 58px; border-radius: 13px; background: #112f2b; color: #e1f2e6; }
.tn-game-banner .tn-eyebrow { color: #a9edbf; }
.tn-game-banner h2 { max-width: 470px; color: #f1f8f0; font-size: clamp(28px, 3vw, 40px); font-weight: 550; letter-spacing: -.045em; line-height: 1.17; margin: 0 0 19px; }
.tn-game-copy > p:not(.tn-eyebrow) { max-width: 450px; color: #adc4b7; font-size: 14px; margin-bottom: 22px; }
.tn-game-copy > a { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 10px 16px; color: #dcf5e2; border: 1px solid #6f9c7c; border-radius: 6px; font-size: 13px; }
.tn-game-copy > a:hover { background: #22513b; color: white; }
.tn-game-copy > a img { display: none; }
.tn-game-art { height: 205px; min-width: 200px; position: relative; transform: rotate(-8deg); }
.tn-game-art::before { content: ""; position: absolute; width: 180px; height: 130px; background: #224c37; border: 1px solid #669065; transform: skewY(-18deg); top: 30px; left: 22%; box-shadow: -28px 31px 0 #193f30, 34px -24px 0 #30613c; }
.tn-game-art::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; color: #c2ee9f; font-family: monospace; font-size: 126px; font-weight: 400; text-shadow: 13px 12px #092923; }
.tn-game-art span { position: absolute; width: 30px; height: 30px; border: 1px solid #658c5a; background: #284d38; right: 2%; top: 18%; box-shadow: -260px 115px 0 #32583d, -32px 140px 0 #416943; }
.tn-about { padding: 0 0 5px; max-width: 830px; margin: 0 auto; text-align: center; font-size: 14px; color: #687c84; }
.tn-about :is(h1, h2) { font-size: 26px; font-weight: 600; margin: 0 0 20px; }
.tn-about :is(span, strong) { font-family: inherit !important; font-size: inherit !important; }
.tn-about :is(h1, h2) span { font-size: inherit !important; }
.tn-about p { line-height: 1.9; margin-bottom: 13px; }
.tn-about p:nth-of-type(2) { font-size: 12px; }

/* Shared inner pages, account forms and the actual JoomShopping components. */
.tn-modern .jshop { font-size: 14px; color: var(--tn-ink); }
.tn-modern .jshop :is(h1, h2) { margin-bottom: 24px; font-size: 30px; font-weight: 600; letter-spacing: -.035em; }
.tn-modern .jshop_list_category > .row-fluid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tn-modern .jshop_list_category .category { width: auto; min-width: 0; margin: 0; padding: 22px; border: 1px solid var(--tn-line); border-radius: 11px; background: white; box-shadow: none; }
.tn-modern .jshop_list_category .image { padding: 10px; height: 145px; display: grid; place-items: center; }
.tn-modern .jshop_list_category .image img { position: static; max-height: 120px; width: auto; object-fit: contain; }
.tn-modern .jshop_list_category .category_info { padding: 20px 0 0; }
.tn-modern .jshop_list_category h3 { font-size: 20px; margin-bottom: 12px; }
.tn-modern .jshop_list_category .category_short_description { font-size: 13px; color: var(--tn-muted); }
.tn-modern .jshop :is(.btn-primary, .button, input[type="submit"]), .tn-modern .container-component .btn-primary { color: #fff; background: var(--tn-green); border: 1px solid var(--tn-green); border-radius: 6px; padding: 10px 18px; font-size: 14px; box-shadow: none; }
.tn-modern .jshop .btn-primary:hover { background: #084737; }
.tn-modern .jshop :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]), select, textarea) { max-width: 100%; border: 1px solid #c8d8d1; border-radius: 6px; padding: 10px 13px; font: 14px var(--tn-font); background: white; color: var(--tn-ink); }
.tn-modern .jshop.pagelogin { padding: 32px; background: #fff; border: 1px solid var(--tn-line); border-radius: 11px; }
.tn-modern .jshop .form-group { margin-bottom: 18px; }
.tn-modern .jshop table { max-width: 100%; }
.tn-modern #mxcpr { display: block; margin: 30px 0 0; color: #637780; font-size: 11px; text-align: right; }
.tn-modern .breadcrumb { background: transparent; padding: 0; font-size: 12px; margin-bottom: 25px; }

/* Keep every existing footer module and legal link; remove the old fixed height. */
body.tn-modern > .container-footer { flex-shrink: 0; display: block; margin: 0; padding: 0; width: 100%; max-width: none; background: var(--tn-navy); color: #bccbd1; border: 0; }
.tn-partners-grid { width: min(var(--tn-width), calc(100% - 64px)); display: grid; grid-template-columns: .92fr 1.55fr .7fr; gap: 35px; align-items: start; margin: 0 auto; padding: 36px 0 30px; }
.tn-modern .tn-partners-grid .tn-footer-partners { background: transparent !important; }
.tn-partners-grid :is(table, tbody, tr, td) { display: block; width: 100% !important; height: auto !important; border: 0; margin: 0; padding: 0; }
.tn-partners-grid :is(td, h3) { text-align: left !important; }
.tn-partners-grid :is(p, h3) { margin: 0 0 12px; }
.tn-partners-grid :is(span, strong, em) { font-family: var(--tn-font) !important; font-size: 11px !important; line-height: 1.8; font-style: normal; font-weight: 400; color: #aebfc8 !important; }
.tn-partners-grid :is(h3, h3 a) { color: #e2efeb; font-size: 13px; font-weight: 600; line-height: 1.5; }
.tn-partners-grid h3 a:hover { color: var(--tn-teal); }
.tn-partners-grid #mod-custom167 tr:last-child { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.tn-partners-grid #mod-custom167 tr:last-child td { width: auto !important; }
.tn-partners-grid :is(#mod-custom167, #mod-custom197) img { float: none !important; max-width: 85px; max-height: 40px; padding: 4px; border-radius: 3px; background: #fff; width: auto; object-fit: contain; }
.tn-partners-grid :is(#mod-custom188, #mod-custom196) img { max-width: 46%; width: auto; max-height: 35px; margin: 3px 5px 5px 0; vertical-align: middle; background: white; padding: 3px; border-radius: 3px; }
.tn-partners-grid :is(#mod-custom188, #mod-custom196) img[width="35"] { max-height: 22px; padding: 0; }
.tn-partners-grid :is(#mod-custom188, #mod-custom196) p { padding-left: 9px; border-left: 2px solid #91bca5; line-height: 1.5; }
.tn-partners-grid :is(#mod-custom204, #mod-custom209) img { max-width: 145px; padding: 7px 9px; border-radius: 4px; background: #fff; }
.tn-modern .container-footer > .grid-child {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 9px 12px;
  width: min(var(--tn-width), calc(100% - 64px));
  max-width: none;
  height: auto !important;
  min-height: 55px !important;
  padding: 14px 0 !important;
  margin: 0 auto;
  border: 0;
  border-top: 1px solid #30414a;
  background: var(--tn-navy);
  line-height: 1.5;
}
.tn-modern .container-footer > .grid-child .mod-menu { display: flex; flex-direction: row; flex-wrap: wrap; flex: 1 1 auto; align-items: center; gap: 8px 24px; margin: 0; padding: 0; }
.tn-modern .container-footer .mod-menu > .metismenu-item { padding: 0 !important; margin: 0; }
.tn-modern .container-footer .mod-menu .divider { display: none; }
.tn-modern .container-footer .mod-menu a { font-size: 12px; color: #aebfc8; padding: 0; border: none; }
.tn-modern .container-footer .mod-menu a:hover { color: var(--tn-teal); }
.tn-modern .container-footer :is(#mod-custom137, #mod-custom158) p { margin: 0; color: #aebfc8 !important; font-family: var(--tn-font) !important; font-size: 11px !important; }
.tn-modern .container-footer #mod-custom158 :is(span, strong) { color: inherit; font-family: inherit !important; font-size: inherit !important; }
.tn-modern .container-footer > .grid-child > a { display: inline-flex; margin: 0; padding: 0 !important; }
.tn-modern .container-footer > .grid-child > a img { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; }
.tn-modern .container-footer > .grid-child .mod-menu__separator { display: none; }

/* Compact assistant: same 246px width, footer avoidance and existing backend. */
.tn-modern .chat-container { width: min(246px, calc(100vw - 32px)); right: 20px; bottom: var(--chat-bottom-offset, 20px); height: min(510px, calc(100dvh - var(--chat-bottom-offset, 20px) - 18px)); max-height: calc(100dvh - var(--chat-bottom-offset, 20px) - 18px); border: 1px solid #244f3e !important; border-radius: 11px; box-shadow: 0 8px 30px #00170c24 !important; font: 13px/1.6 var(--tn-font); background: #fff; transition: bottom .15s ease; }
.tn-modern .chat-container.minimized { height: auto; }
.tn-modern .chat-container:not(.minimized) { max-height: var(--tn-chat-available-height); }
.tn-modern .chat-container .chat-header { flex: 0 0 auto; padding: 13px 15px; gap: 10px; background: #173f32; color: #e7f7ed; }
.tn-modern .chat-container .chat-header:hover { background: #21553e; }
.tn-modern .chat-container .chat-header::after { content: "−"; color: #bbdbc9; font-size: 17px; margin-left: auto; line-height: 1; }
.tn-modern .chat-container.minimized .chat-header::after { content: "+"; }
.tn-modern .chat-container .chat-header h1 { color: #edf9f0; text-shadow: none; font: 600 14px/1.4 var(--tn-font); margin: 0; letter-spacing: 0; }
.tn-modern .chat-container .bot-icon { color: var(--tn-teal); width: 18px; height: 18px; flex-basis: 18px; }
.tn-modern .chat-container .messages { min-height: 0; overscroll-behavior: contain; padding: 13px; gap: 13px; }
.tn-modern .chat-container .messages p { margin-bottom: 0; }
.tn-modern .chat-container .message { max-width: 100%; gap: 5px; }
.tn-modern .chat-container .avatar { width: 20px; height: 23px; flex: 0 0 20px; }
.tn-modern .chat-container .message-content { min-width: 0; padding: 9px; font-size: 12px; overflow-wrap: anywhere; }
.tn-modern .chat-container .user :is(.avatar, .message-content) { color: white; background: #226447; }
.tn-modern .chat-container .assistant .avatar { color: #246044; background: #edf6ef; }
.tn-modern .chat-container .chat-form { flex: 0 0 auto; margin: 0; padding: 10px; gap: 6px; border-color: #e0eae4; }
.tn-modern .chat-container .chat-form input { font-size: 12px; padding: 8px; }
.tn-modern .chat-container .chat-form button { font-size: 12px; padding: 8px 10px; background: #226447; }
.tn-modern .chat-container .chat-form button:hover { background: #154c34; }
.tn-modern .back-to-top-link { right: auto; left: 14px; bottom: 14px; border-radius: 7px; background: var(--tn-navy); color: white; }

@media (min-width: 992px) {
  .tn-modern .tn-nav .mod-menu .mm-collapse { inset-inline-start: 0; top: 100%; }
}
@media (max-width: 1100px) {
  .tn-header-main { gap: 16px; }
  .tn-modern .tn-nav .mod-menu { gap: 0; }
  .tn-modern .tn-nav .mod-menu > li > a { padding-inline: 9px; font-size: 12px; }
  .tn-modern .snip1517 { gap: 12px; }
  .tn-modern .snip1517 .plan { padding: 20px 16px; }
  .tn-modern .snip1517 .plan-title { font-size: 17px; }
  .tn-modern .snip1517 .plan-price { font-size: 32px; }
}
@media (max-width: 991px) {
  .tn-header-main { position: relative; min-height: 76px; display: block; padding-block: 18px; }
  .tn-modern .tn-nav.navbar { display: block; position: static; }
  .tn-modern .tn-nav .navbar-toggler { position: absolute; top: 18px; right: 0; }
  .tn-modern .tn-nav .navbar-toggler span { display: none; }
  .tn-modern .tn-nav .navbar-toggler::before { content: ""; display: block; width: 18px; height: 2px; background: #d1e6dc; box-shadow: 0 -6px #d1e6dc, 0 6px #d1e6dc; margin: 0 auto; }
  .tn-modern .tn-nav .navbar-collapse { width: 100%; }
  .tn-modern .tn-nav .mod-menu { align-items: stretch; flex-direction: column; gap: 0; margin-top: 20px; }
  .tn-modern .tn-nav .mod-menu > li { flex-wrap: wrap; }
  .tn-modern .tn-nav .mod-menu > li > a { padding: 13px 8px; flex: 1; font-size: 14px; }
  .tn-modern .tn-nav .mod-menu > li:last-child { margin: 10px 0 0; }
  .tn-modern .tn-nav .mm-toggler { width: 44px; min-height: 40px; }
  .tn-modern .tn-nav .mod-menu .mm-collapse { position: static; margin: 0; width: 100%; min-width: 0; padding: 6px; box-shadow: none; }
  .tn-hero-grid { gap: 10px; grid-template-columns: 1.1fr 1fr; min-height: 295px; }
  .tn-hero h1 { font-size: 56px; }
  .tn-hero-copy > p:not(.tn-eyebrow) { font-size: 14px; }
  .tn-modern .snip1517 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .tn-modern .snip1517 .plan { padding: 25px; }
  .tn-modern .snip1517 .plan header { min-height: 180px; }
  .tn-modern .snip1517 .plan-title { font-size: 20px; min-height: auto; }
  .tn-modern .snip1517 .plan-features { font-size: 13px; }
  .tn-game-banner { padding: 35px; }
  .tn-partners-grid { grid-template-columns: 1fr 1.4fr; gap: 25px; }
  .tn-partners-grid :is(#mod-custom204, #mod-custom209) { grid-column: 1 / -1; }
  .tn-modern .jshop_list_category > .row-fluid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tn-shell, .tn-modern .site-grid, .tn-partners-grid, .tn-modern .container-footer > .grid-child { width: calc(100% - 36px); }
  .tn-header-utility { min-height: 31px; padding-block: 6px; gap: 8px; }
  .tn-header-utility .ylaslogan { font-size: 10px; }
  .tn-header-utility .ylaemail { display: none; }
  .tn-brand-name { font-size: 16px; }
  .tn-header-main { min-height: 72px; }
  .tn-hero { padding-top: 26px; margin-bottom: 50px; }
  .tn-hero-grid { grid-template-columns: 1fr; gap: 7px; padding-bottom: 23px; }
  .tn-hero h1 { font-size: 56px; margin-bottom: 20px; }
  .tn-hero-copy > p:not(.tn-eyebrow) { font-size: 14px; margin-bottom: 20px; }
  .tn-hero-actions { gap: 17px; }
  .tn-hero-actions a { font-size: 12px; }
  .tn-network-art { width: 100%; max-width: 300px; justify-self: center; margin: 0; }
  .tn-domain-panel { padding: 19px 17px 16px; border-radius: 10px; }
  .tn-domain-panel #spinnin-button { flex-wrap: wrap; gap: 10px; }
  .tn-domain-panel #spinnin-button { grid-template-columns: minmax(0, 1fr); }
  .tn-domain-heading { display: block; }
  .tn-domain-heading .tn-eyebrow { margin-bottom: 8px; }
  .tn-domain-panel .ylakirjoitatunnus { flex-basis: 100%; }
  .tn-domain-panel .ylahaetunnus { flex-basis: 100%; height: 49px; }
  .tn-domain-panel .ylasaatavuushaku { width: 100%; height: 46px; }
  .tn-domain-prices { display: grid; grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .tn-domain-prices a { padding: 0 8px 0 0; font-size: 11px; border-right: 0; }
  .tn-domain-prices a:nth-child(even) { padding-left: 9px; border-left: 1px solid #dde8e5; }
  .tn-home .site-grid { padding-top: 55px; }
  .tn-modern .site-grid { padding-bottom: 37px; }
  .tn-modern.has-sidebar-left .site-grid, .tn-modern.has-sidebar-right .site-grid, .tn-modern.has-sidebar-left.has-sidebar-right .site-grid { grid-template-columns: minmax(0, 1fr); }
  .tn-section-heading { margin-bottom: 24px; }
  .tn-section-heading h2 { font-size: 29px; }
  .tn-modern .snip1517 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tn-modern .snip1517 .plan { padding: 26px; }
  .tn-modern .snip1517 .plan header { min-height: 0; margin-bottom: 12px; }
  .tn-modern .snip1517 .plan-cost { min-height: 45px; }
  .tn-modern .tn-plan-description { min-height: 0; }
  .tn-package-notes { padding: 19px; margin-bottom: 30px; }
  .tn-game-banner { display: block; padding: 29px 25px; margin: 30px 0 37px; }
  .tn-game-banner h2 { font-size: 32px; }
  .tn-game-art { width: 230px; height: 170px; margin: 18px auto 0; }
  .tn-about { font-size: 13px; }
  .tn-about :is(h1, h2) { font-size: 23px; }
  .tn-partners-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 28px 0; }
  .tn-partners-grid :is(#mod-custom167, #mod-custom197) { max-width: 390px; }
  .tn-partners-grid :is(#mod-custom188, #mod-custom196) img { max-height: 34px; }
  .tn-modern .container-footer > .grid-child { padding: 18px 0 !important; gap: 13px; }
  .tn-modern .container-footer > .grid-child .mod-menu { flex-basis: 100%; gap: 10px 18px; }
  .tn-modern .container-footer #mod-custom137 { margin-right: auto; }
  .tn-header-search #spinnin-button { flex-wrap: wrap; }
  .tn-header-search .ylakirjoitatunnus { flex-basis: 100%; }
  .tn-header-search .ylahaetunnus { min-width: 0; width: 100px; flex: 1; }
  .tn-header-search .ylasaatavuushaku { padding: 10px; font-size: 11px; }
  .tn-modern .jshop_list_category > .row-fluid { grid-template-columns: minmax(0, 1fr); }
  .tn-modern .jshop.pagelogin { padding: 23px 17px; }
  .tn-modern .chat-container { right: 16px; }
}
@media (max-width: 360px) {
  .tn-brand-name { font-size: 14px; }
  .tn-modern a.tn-brand { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html.tn-modern { scroll-behavior: auto; }
  .tn-modern .chat-container, .tn-modern .snip1517 * { transition: none; }
}
