/* Theme 1 - Keystore-inspired dark marketplace */
:root {
    --t1-bg: #050505;
    --t1-surface: #0c0d10;
    --t1-card: #111216;
    --t1-card-2: #16171b;
    --t1-line: #24262c;
    --t1-muted: #9699a3;
    --t1-text: #f4f5f7;
    --t1-blue: #159fe5;
    --t1-blue-2: #35c4ff;
    --t1-purple: #8b5cf6;
    --t1-pink: #ef5573;
    --t1-green: #35d38a;
    --t1-radius: 18px;
    --t1-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--t1-bg); }
body.theme1-body {
    min-width: 320px;
    margin: 0;
    color: var(--t1-text);
    background: var(--t1-bg);
    font-family: 'Signika', system-ui, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}
body.theme1-body a { color: inherit; }
button, input { font: inherit; }
.theme1-shell { min-height: 100vh; overflow: hidden; }
.theme1-main { width: min(100% - 32px, var(--t1-max)); margin: 0 auto; padding: 96px 0 0; }
.theme1-container { width: min(100%, var(--t1-max)); margin: 0 auto; }

/* Header */
.theme1-header {
    position: fixed;
    z-index: 80;
    top: 16px;
    left: 50%;
    width: min(calc(100% - 32px), var(--t1-max));
    transform: translateX(-50%);
    border: 1px solid #282a30;
    border-radius: 18px;
    background: rgba(14, 15, 18, .9);
    box-shadow: 0 14px 44px rgba(0, 0, 0, .32);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}
.theme1-header-inner { display: flex; align-items: center; gap: 15px; min-height: 64px; padding: 9px 14px; }
.theme1-icon-button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; flex: 0 0 38px; padding: 0;
    color: #9297a1; border: 1px solid transparent; border-radius: 12px;
    background: transparent; cursor: pointer; transition: .2s ease;
}
.theme1-icon-button:hover { color: #fff; border-color: #34373f; background: #1b1d22; }
.theme1-icon-button svg { width: 19px; height: 19px; }
.theme1-brand { display: flex; align-items: center; gap: 9px; min-width: 0; text-decoration: none; }
.theme1-brand-image { width: auto; max-width: 170px; height: 38px; object-fit: contain; }
.theme1-brand-mark {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border: 1px solid rgba(53,196,255,.55); border-radius: 12px; color: #fff;
    background: linear-gradient(135deg, #0e69a1, #1db8ea); font-size: 21px; font-weight: 700;
    box-shadow: 0 0 18px rgba(21,159,229,.23);
}
.theme1-brand-copy { display: grid; line-height: 1; white-space: nowrap; }
.theme1-brand-copy strong { font-size: 15px; letter-spacing: .03em; }
.theme1-brand-copy small { margin-top: 5px; color: #777c87; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.theme1-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.theme1-account {
    display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px;
    border: 1px solid rgba(54,184,244,.2); border-radius: 999px; color: #e9f8ff;
    background: linear-gradient(135deg, #138bd0, #16a7e9); text-decoration: none;
    box-shadow: 0 6px 18px rgba(7,113,180,.2); transition: .2s ease;
}
.theme1-account:hover { filter: brightness(1.1); transform: translateY(-1px); }
.theme1-account svg { width: 17px; height: 17px; }
.theme1-account-avatar { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.18); font-weight: 700; font-size: 12px; }
.theme1-account-label { font-size: 14px; font-weight: 600; }
.theme1-search-panel { padding: 0 14px 13px; }
.theme1-search-field { position: relative; display: flex; align-items: center; }
.theme1-search-field > svg { position: absolute; left: 14px; width: 17px; color: #6f747d; pointer-events: none; }
.theme1-search-field input { width: 100%; padding: 11px 14px 11px 42px; border: 1px solid #2c2f36; border-radius: 13px; outline: none; color: #fff; background: #090a0c; }
.theme1-search-field input:focus { border-color: rgba(53,196,255,.65); box-shadow: 0 0 0 3px rgba(53,196,255,.09); }
.theme1-search-results { position: absolute; right: 14px; left: 14px; z-index: 90; margin-top: 7px; overflow: hidden; border: 1px solid var(--t1-line); border-radius: 14px; background: #111216; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.theme1-search-results a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-bottom: 1px solid rgba(255,255,255,.05); text-decoration: none; }
.theme1-search-results a:hover { background: rgba(53,196,255,.08); }
.theme1-search-results img { width: 45px; height: 31px; border-radius: 7px; object-fit: cover; }
.theme1-search-results strong { display: block; font-size: 13px; }
.theme1-search-results small { color: var(--t1-blue-2); }

/* Drawer */
.theme1-backdrop { position: fixed; z-index: 85; inset: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(4px); }
.theme1-menu-drawer { position: fixed; z-index: 90; top: 0; bottom: 0; left: 0; width: min(350px, 88vw); padding: 24px; transform: translateX(-105%); border-right: 1px solid #2c2e34; background: #0d0e11; box-shadow: 16px 0 50px rgba(0,0,0,.35); transition: transform .25s ease; }
.theme1-menu-drawer.open { transform: translateX(0); }
.theme1-drawer-top { display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: 18px; font-weight: 600; }
.theme1-drawer-account { display: grid; gap: 3px; margin: 28px 0 20px; padding: 17px; border: 1px solid #252830; border-radius: 16px; background: linear-gradient(135deg, rgba(21,159,229,.14), rgba(139,92,246,.06)); }
.theme1-drawer-eyebrow { color: #89909c; font-size: 12px; }
.theme1-drawer-account small { color: var(--t1-blue-2); }
.theme1-drawer-nav { display: grid; gap: 5px; }
.theme1-drawer-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 11px 12px; border-radius: 11px; color: #b7bbc4; text-decoration: none; transition: .2s ease; }
.theme1-drawer-nav a:hover, .theme1-drawer-nav a.active { color: #fff; background: rgba(53,196,255,.1); }
.theme1-drawer-nav a > svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--t1-blue-2); stroke-width: 2.2; }
.theme1-drawer-nav a:hover > svg, .theme1-drawer-nav a.active > svg { color: #63d8ff; }

/* Shared content surfaces */
.ks-section { margin-top: 30px; }
.ks-section-head { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.ks-section-title { margin: 0; color: #fafafa; font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.ks-section-subtitle { margin: 4px 0 0; color: #777c87; font-size: 13px; }
.ks-link { display: inline-flex; align-items: center; gap: 6px; color: #a9adb6; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ks-link:hover { color: var(--t1-blue-2); }
.ks-link svg { width: 15px; }
.ks-panel { border: 1px solid #24262c; border-radius: var(--t1-radius); background: linear-gradient(145deg, #101114, #0a0b0d); }

/* Reference-style hero carousel */
.ks-hero { position: relative; overflow: hidden; min-height: 220px; border: 1px solid #252830; border-radius: 19px; background: #0a0b0d; box-shadow: 0 18px 50px rgba(0,0,0,.24); }
.ks-hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.ks-hero-slide.is-active { opacity: 1; pointer-events: auto; }
.ks-hero-slide img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }
.ks-hero-slide::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, rgba(3,7,13,.15), transparent 48%, rgba(3,7,13,.12)); }
.ks-hero-control { position: absolute; z-index: 3; top: 50%; display: grid; place-items: center; width: 39px; height: 39px; transform: translateY(-50%); border: 0; border-radius: 50%; color: #dcefff; background: rgba(35,52,67,.68); cursor: pointer; }
.ks-hero-control:hover { background: rgba(21,159,229,.9); }
.ks-hero-control.prev { left: 15px; }
.ks-hero-control.next { right: 15px; }
.ks-hero-control svg { width: 19px; }
.ks-hero-dots { position: absolute; z-index: 4; right: 0; bottom: 12px; left: 0; display: flex; justify-content: center; gap: 6px; }
.ks-hero-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; }
.ks-hero-dot.is-active { width: 22px; border-radius: 999px; background: var(--t1-blue-2); }

/* Quick links and notice */
.ks-shortcuts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: 27px; }
.ks-shortcut { display: grid; justify-items: center; gap: 9px; color: #d6d7db; text-align: center; text-decoration: none; }
.ks-shortcut:hover { color: #fff; }
.ks-shortcut-icon { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(21,159,229,.35); border-radius: 17px; color: #24baf3; background: linear-gradient(145deg, rgba(14,55,74,.7), rgba(9,20,29,.9)); box-shadow: inset 0 0 16px rgba(21,159,229,.08); transition: .25s ease; }
.ks-shortcut:hover .ks-shortcut-icon { transform: translateY(-3px); border-color: var(--t1-blue-2); box-shadow: 0 8px 24px rgba(21,159,229,.17); }
.ks-shortcut-icon svg { width: 24px; height: 24px; }
.ks-shortcut span { font-size: 12px; font-weight: 600; }
.ks-notice { margin-top: 30px; padding: 19px 22px; border: 1px solid rgba(53,196,255,.18); border-radius: 18px; background: radial-gradient(circle at 100% 0, rgba(21,159,229,.08), transparent 42%), #0b0d10; color: #d7d9de; }
.ks-notice p { margin: 0 0 7px; line-height: 1.55; font-size: 13px; }
.ks-notice p:last-child { margin-bottom: 0; }
.ks-notice strong { color: #fff; font-weight: 600; }
.ks-ticker { margin-top: 20px; overflow: hidden; border: 1px solid #22252c; border-radius: 12px; background: #0b0c0f; }
.ks-ticker-track { display: flex; width: max-content; gap: 40px; padding: 11px 18px; color: #9297a1; font-size: 12px; animation: ksTicker 20s linear infinite; }
@keyframes ksTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Catalog */
.ks-view-switcher { display: flex; flex-wrap: wrap; gap: 7px; }
.ks-view-switcher button { padding: 7px 11px; border: 1px solid #2b2e35; border-radius: 9px; color: #888e9a; background: transparent; cursor: pointer; font-size: 12px; }
.ks-view-switcher button:hover, .ks-view-switcher button.is-active { color: #fff; border-color: var(--t1-blue); background: rgba(21,159,229,.15); }
.ks-catalog { display: grid; gap: 22px; }
.ks-category-block { padding: 18px; border: 1px solid #22252b; border-radius: 18px; background: #0b0c0f; }
.ks-category-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.ks-category-label { display: flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; }
.ks-category-icon { display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border: 1px solid rgba(53,196,255,.25); border-radius: 13px; color: #35c4ff; background: rgba(21,159,229,.1); font-size: 21px; }
.ks-category-icon img { width: 100%; height: 100%; object-fit: cover; }
.ks-category-name { display: block; color: #f4f5f7; font-size: 16px; font-weight: 600; }
.ks-category-count { display: block; margin-top: 2px; color: #747a85; font-size: 12px; }
.ks-products { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.ks-product { display: flex; min-width: 0; overflow: hidden; border: 1px solid #252830; border-radius: 14px; background: #121317; text-decoration: none; transition: .25s ease; flex-direction: column; }
.ks-product:hover { transform: translateY(-3px); border-color: rgba(53,196,255,.48); box-shadow: 0 12px 25px rgba(0,0,0,.22); }
.ks-product-media { position: relative; aspect-ratio: 1.48; overflow: hidden; background: #191b20; }
.ks-product-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ks-product:hover .ks-product-media img { transform: scale(1.06); }
.ks-product-status { position: absolute; top: 8px; right: 8px; padding: 4px 7px; border-radius: 6px; color: #d9ffed; background: rgba(18,136,78,.83); font-size: 10px; font-weight: 600; }
.ks-product-body { display: flex; min-width: 0; flex: 1; padding: 11px; flex-direction: column; }
.ks-product-name { overflow: hidden; margin: 0 0 7px; color: #e9eaed; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ks-product-price { display: flex; align-items: baseline; gap: 4px; color: var(--t1-blue-2); font-size: 14px; font-weight: 700; }
.ks-product-price small { color: #737985; font-size: 11px; font-weight: 400; }
.ks-product-buy { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; margin-top: auto; padding: 8px 10px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #16a9e3, #158fda); box-shadow: 0 7px 16px rgba(21,159,229,.2); font-size: 11px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.ks-product:hover .ks-product-buy { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(21,159,229,.3); filter: brightness(1.05); }
.ks-product-buy svg { width: 14px; height: 14px; }
.ks-catalog[data-view="row"] .ks-category-block { padding: 14px 0; border: 0; border-radius: 0; background: transparent; }
.ks-catalog[data-view="row"] .ks-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ks-catalog[data-view="cyber"] .ks-product { border-radius: 5px; transform: skewY(-1deg); }
.ks-catalog[data-view="cyber"] .ks-product-body { transform: skewY(1deg); }
.ks-catalog[data-view="tab"] .ks-category-block:not(.is-selected) { display: none; }
.ks-empty { padding: 46px 20px; color: #777c87; text-align: center; }
.ks-library { padding-top: 16px; }
.ks-library-head { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 25px; margin-bottom: 28px; }
.ks-breadcrumb { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: #7f8692; font-size: 12px; }
.ks-breadcrumb a { color: #aeb4be; text-decoration: none; }
.ks-breadcrumb a:hover { color: var(--t1-blue-2); }
.ks-library-intro h1 { margin: 0; color: #fafafa; font-size: clamp(26px, 4vw, 39px); font-weight: 650; line-height: 1.08; letter-spacing: -.025em; }
.ks-library-intro p { max-width: 620px; margin: 10px 0 0; color: #8a909a; font-size: 14px; line-height: 1.55; }
.ks-library-search { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border: 1px solid #30333a; border-radius: 17px; background: #111216; }
.ks-library-search svg { width: 18px; color: #6b717c; flex: 0 0 18px; }
.ks-library-search input { width: 100%; border: 0; outline: 0; color: #fff; background: transparent; font-size: 13px; }
.ks-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding-bottom: 18px; border-bottom: 1px solid #24262c; }
.ks-filter { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border: 1px solid #2c2f36; border-radius: 12px; color: #b9bec6; background: #131419; text-decoration: none; font-size: 12px; }
.ks-filter:hover, .ks-filter.is-active { color: #fff; border-color: var(--t1-blue); background: rgba(21,159,229,.16); }
.ks-filter svg { width: 14px; }
.ks-sort-row { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 12px; color: #7c828d; font-size: 12px; }
.ks-sort-row a { color: #adb2ba; text-decoration: none; }
.ks-sort-row a:hover, .ks-sort-row a.is-active { color: var(--t1-blue-2); }
.ks-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 24px; }
.ks-library-grid .ks-product { border-radius: 17px; }
.ks-library-grid .ks-product-media { aspect-ratio: 1.7; background: #242424; }
.ks-library-grid .ks-product-body { padding: 14px; }
.ks-library-grid .ks-product-buy { background: linear-gradient(135deg, #129bd9, #178fe0); border-color: transparent; color: #fff; }

/* Product detail shell inspired by the reference storefront */
.ks-product-detail { padding-top: 16px; }
.ks-detail-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 17px; color: #727984; font-size: 12px; }
.ks-detail-breadcrumb a { color: #a4aab5; text-decoration: none; transition: color .2s ease; }
.ks-detail-breadcrumb a:hover { color: var(--t1-blue-2); }
.ks-detail-breadcrumb span { overflow: hidden; max-width: 45%; color: var(--t1-blue-2); text-overflow: ellipsis; white-space: nowrap; }
.ks-detail-breadcrumb svg { width: 13px; height: 13px; color: #565c66; }
.ks-browser-frame { overflow: hidden; border: 1px solid #292c34; border-radius: 19px; background: #0d0f12; box-shadow: 0 21px 65px rgba(0,0,0,.3); }
.ks-browser-bar { display: flex; align-items: center; gap: 13px; min-height: 47px; padding: 0 15px; border-bottom: 1px solid #25282f; background: #15171b; }
.ks-browser-dots { display: flex; gap: 6px; flex: 0 0 auto; }
.ks-browser-dots i { display: block; width: 10px; height: 10px; border-radius: 50%; background: #e45757; }
.ks-browser-dots i:nth-child(2) { background: #e0b145; }
.ks-browser-dots i:nth-child(3) { background: #4fca76; }
.ks-browser-url { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; margin: 0 auto; padding: 8px 13px; border: 1px solid #2b2e36; border-radius: 10px; color: #858b96; background: #0d0f12; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-browser-url svg { width: 13px; height: 13px; flex: 0 0 13px; color: #52c992; }
.ks-browser-actions { display: flex; gap: 3px; flex: 0 0 auto; }
.ks-browser-actions button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; color: #79808b; background: transparent; cursor: pointer; }
.ks-browser-actions button:hover { color: #fff; background: #252932; }
.ks-browser-actions svg { width: 15px; height: 15px; }
.ks-browser-content { position: relative; min-height: 390px; overflow: hidden; background: #111317; }
.ks-detail-hero-image { display: block; width: 100%; height: 100%; min-height: 390px; object-fit: cover; object-position: center; }
.ks-detail-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,7,12,.88) 0%, rgba(4,7,12,.55) 35%, rgba(4,7,12,.12) 72%, rgba(4,7,12,.45) 100%), linear-gradient(0deg, rgba(4,7,12,.78), transparent 48%); pointer-events: none; }
.ks-detail-content { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 34px clamp(20px, 4vw, 52px) 35px; }
.ks-detail-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 12px; }
.ks-detail-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 4px 9px; border: 1px solid transparent; border-radius: 6px; color: #d6f8ff; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.ks-detail-badge-active { border-color: rgba(55,213,145,.3); color: #7ee6ad; background: rgba(22,137,83,.25); }
.ks-detail-badge-active > i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #62e39a; box-shadow: 0 0 9px #62e39a; }
.ks-detail-badge-featured { border-color: rgba(248,196,64,.29); color: #f2cb73; background: rgba(163,115,16,.2); }
.ks-detail-badge-auto { border-color: rgba(53,196,255,.28); color: #8edfff; background: rgba(21,125,173,.22); }
.ks-detail-badge-sale { border-color: rgba(250,94,112,.32); color: #ff9ba6; background: rgba(194,45,63,.22); }
.ks-detail-badge svg { width: 12px; height: 12px; }
.ks-detail-content h1 { max-width: 680px; margin: 0; color: #fff; font-size: clamp(27px, 4vw, 45px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.ks-detail-content p { max-width: 590px; margin: 12px 0 0; color: #b3bac4; font-size: 13px; line-height: 1.55; }
.ks-detail-downloads { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.ks-download-button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 9px; color: #fff; font-size: 11px; font-weight: 700; text-decoration: none; transition: transform .2s ease, filter .2s ease; }
.ks-download-button:hover { filter: brightness(1.13); transform: translateY(-2px); }
.ks-download-button svg:first-child { width: 14px; height: 14px; }
.ks-download-button svg:last-child { width: 12px; height: 12px; opacity: .48; }
.ks-product-detail .package-card { overflow: visible; }
.ks-product-detail #packages-grid { align-items: stretch; }
.ks-product-detail #packages-grid > .package-card > div:last-child { border-radius: 16px; background: linear-gradient(145deg, #14161b, #0e1013); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.ks-product-detail #packages-grid > .package-card > div:last-child:hover { transform: translateY(-3px); box-shadow: 0 17px 30px rgba(0,0,0,.23); }
.ks-product-detail .mk-product-card { border-color: #292c34; background: #121419; }
.ks-product-detail .mk-product-img { background: #202329; }

/* Steps, features and activity */
.ks-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.ks-step { position: relative; min-height: 190px; overflow: hidden; padding: 32px 18px 20px; border: 1px solid rgba(53,196,255,.2); border-radius: 18px; background: linear-gradient(180deg, rgba(21,159,229,.08), rgba(14,15,18,.96) 58%), #0e0f12; text-align: center; box-shadow: 0 9px 25px rgba(0,0,0,.12); }
.ks-step::after { position: absolute; right: -22px; bottom: -27px; width: 112px; height: 112px; border-radius: 50%; background: rgba(21,159,229,.13); content: ''; filter: blur(18px); pointer-events: none; }
.ks-step-number { position: absolute; z-index: 3; top: -14px; left: 50%; display: grid; place-items: center; width: 31px; height: 31px; margin: 0; border: 4px solid var(--t1-bg); border-radius: 50%; color: #fff; background: linear-gradient(135deg, #21c7ef, #168fce); font-size: 12px; font-weight: 700; transform: translateX(-50%); }
.ks-step:nth-child(2) .ks-step-number { background: var(--t1-purple); }
.ks-step:nth-child(3) .ks-step-number { background: var(--t1-green); }
.ks-step-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border: 1px solid rgba(53,196,255,.3); border-radius: 16px; color: #36c8f5; background: rgba(21,159,229,.12); box-shadow: inset 0 0 18px rgba(21,159,229,.05), 0 8px 18px rgba(0,0,0,.12); }
.ks-step-icon svg { width: 26px; height: 26px; }
.ks-step:nth-child(2) { border-color: rgba(139,92,246,.25); background: linear-gradient(180deg, rgba(139,92,246,.09), rgba(14,15,18,.96) 58%), #0e0f12; }
.ks-step:nth-child(2)::after { background: rgba(139,92,246,.15); }
.ks-step:nth-child(2) .ks-step-icon { border-color: rgba(167,139,250,.32); color: #b69aff; background: rgba(139,92,246,.13); }
.ks-step:nth-child(3) { border-color: rgba(53,211,138,.22); background: linear-gradient(180deg, rgba(53,211,138,.075), rgba(14,15,18,.96) 58%), #0e0f12; }
.ks-step:nth-child(3)::after { background: rgba(53,211,138,.14); }
.ks-step:nth-child(3) .ks-step-icon { border-color: rgba(92,228,157,.3); color: #5ce49d; background: rgba(53,211,138,.12); }
.ks-step h3, .ks-step p { position: relative; z-index: 1; }
.ks-step h3, .ks-feature h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.ks-step p, .ks-feature p { margin: 0; color: #777d88; font-size: 12px; line-height: 1.45; }
.ks-features { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.ks-feature { position: relative; display: flex; align-items: flex-start; gap: 11px; min-height: 96px; overflow: hidden; padding: 17px 15px; border: 1px solid rgba(53,196,255,.18); border-radius: 15px; background: linear-gradient(180deg, rgba(21,159,229,.055), rgba(14,15,18,.98) 80%), #0e0f12; box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.ks-feature::after { position: absolute; right: -19px; bottom: -27px; width: 96px; height: 96px; border-radius: 50%; background: rgba(21,159,229,.12); content: ''; filter: blur(17px); pointer-events: none; }
.ks-feature > div { position: relative; z-index: 1; }
.ks-feature-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid rgba(53,196,255,.2); border-radius: 12px; color: var(--t1-blue-2); background: rgba(21,159,229,.12); box-shadow: 0 5px 14px rgba(0,0,0,.12); }
.ks-feature:nth-child(2) .ks-feature-icon { color: #b49aff; background: rgba(139,92,246,.13); }
.ks-feature:nth-child(3) .ks-feature-icon { color: #7dbbff; background: rgba(71,139,255,.13); }
.ks-feature:nth-child(4) .ks-feature-icon { color: #5ce49d; background: rgba(53,211,138,.12); }
.ks-feature:nth-child(2) { border-color: rgba(139,92,246,.2); background: linear-gradient(180deg, rgba(139,92,246,.06), rgba(14,15,18,.98) 80%), #0e0f12; }
.ks-feature:nth-child(2)::after { background: rgba(139,92,246,.13); }
.ks-feature:nth-child(3) { border-color: rgba(71,139,255,.2); background: linear-gradient(180deg, rgba(71,139,255,.06), rgba(14,15,18,.98) 80%), #0e0f12; }
.ks-feature:nth-child(3)::after { background: rgba(71,139,255,.13); }
.ks-feature:nth-child(4) { border-color: rgba(53,211,138,.2); background: linear-gradient(180deg, rgba(53,211,138,.055), rgba(14,15,18,.98) 80%), #0e0f12; }
.ks-feature:nth-child(4)::after { background: rgba(53,211,138,.12); }
.ks-feature-icon svg { width: 19px; height: 19px; }
.ks-activity-section { padding-top: 2px; scroll-margin-top: 150px; }
.ks-activity-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ks-activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.ks-activity { overflow: hidden; min-width: 0; border: 1px solid #24262c; border-radius: 16px; background: #0d0e11; box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.ks-activity-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 75px; padding: 14px 18px; border-bottom: 1px solid #24262c; }
.ks-activity-title { display: flex; align-items: center; min-width: 0; gap: 11px; }
.ks-activity-head-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid rgba(34,185,242,.22); border-radius: 14px; color: #22b9f2; background: rgba(34,185,242,.12); }
.ks-activity-head-icon svg { width: 20px; height: 20px; stroke-width: 2.2; }
.ks-activity-deposits .ks-activity-head-icon { border-color: rgba(44,205,139,.22); color: #2ccd8b; background: rgba(44,205,139,.12); }
.ks-activity-head h3 { margin: 0; color: #d9e9f2; font-size: 17px; font-weight: 750; }
.ks-activity-count { display: inline-flex; align-items: center; min-height: 27px; padding: 0 10px; border: 1px solid rgba(34,185,242,.2); border-radius: 999px; color: #8adfff; background: rgba(34,185,242,.1); font-size: 11px; font-weight: 750; white-space: nowrap; }
.ks-activity-deposits .ks-activity-count { border-color: rgba(44,205,139,.2); color: #59e2aa; background: rgba(44,205,139,.1); }
.ks-activity-list { display: grid; }
.ks-activity-item { display: flex; align-items: center; min-height: 67px; gap: 12px; padding: 10px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ks-activity-item:last-child { border-bottom: 0; }
.ks-activity-avatar { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; border: 1px solid rgba(34,185,242,.22); border-radius: 50%; color: #e7fbff; background: linear-gradient(145deg, #73d8f3, #168dc2); box-shadow: inset 0 0 0 4px rgba(255,255,255,.55); font-size: 13px; font-weight: 800; }
.ks-activity-deposits .ks-activity-avatar { border-color: rgba(44,205,139,.2); background: linear-gradient(145deg, #85e6bb, #1aaf73); }
.ks-activity-copy { min-width: 0; flex: 1; }
.ks-activity-copy strong { display: block; overflow: hidden; color: #f0f3f5; font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.ks-activity-copy strong em { color: #8a929d; font-style: normal; font-weight: 500; }
.ks-activity-copy small { display: flex; align-items: center; gap: 6px; overflow: hidden; margin-top: 4px; color: #7f8995; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ks-activity-copy small b { overflow: hidden; color: #31bde9; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.ks-activity-deposits .ks-activity-copy small b { color: #38c98b; }
.ks-activity-copy small span { color: #a4abb3; }
.ks-activity-amount { color: #edf2f5; font-size: 13px; font-weight: 800; white-space: nowrap; }
.ks-activity-credit { color: #31c98b; }

/* Modal */
.ks-modal { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.73); backdrop-filter: blur(9px); }
.ks-modal[hidden] { display: none; }
.ks-modal-card { width: min(100%, 550px); overflow: hidden; border: 1px solid #30333b; border-radius: 18px; background: #151619; box-shadow: 0 24px 90px rgba(0,0,0,.55); }
.ks-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #2a2c33; font-size: 16px; font-weight: 600; }
.ks-modal-body { padding: 18px 20px; color: #d5d7dc; font-size: 14px; line-height: 1.6; }
.ks-modal-body p { margin: 0 0 9px; }
.ks-modal-actions { display: flex; gap: 9px; padding: 16px 20px; border-top: 1px solid #2a2c33; }
.ks-modal-actions button { flex: 1; padding: 10px; border: 1px solid #33363e; border-radius: 10px; color: #d6d9df; background: #202126; cursor: pointer; }
.ks-modal-actions button:last-child { border-color: #b53c58; color: #fff; background: #a9304a; }

/* Footer */
.theme1-footer { margin-top: 60px; border-top: 1px solid #1e2025; background: #08090b; }
.theme1-footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.15fr; gap: 35px; padding: 46px 0 38px; }
.theme1-footer-brand { color: #a0a5af; font-size: 13px; line-height: 1.6; }
.theme1-footer-brand p { max-width: 310px; margin: 15px 0 19px; }
.theme1-footer h3 { margin: 0 0 13px; color: #f2f3f5; font-size: 15px; font-weight: 600; }
.theme1-footer-links { display: grid; gap: 9px; }
.theme1-footer-links a { color: #878d98; font-size: 13px; text-decoration: none; }
.theme1-footer-links a:hover { color: var(--t1-blue-2); }
.theme1-socials { display: flex; gap: 8px; }
.theme1-socials a { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #2a2d34; border-radius: 10px; color: #9298a3; }
.theme1-socials a:hover { color: #fff; border-color: var(--t1-blue); }
.theme1-newsletter { display: flex; overflow: hidden; border: 1px solid #2b2e35; border-radius: 10px; background: #111216; }
.theme1-newsletter input { min-width: 0; flex: 1; padding: 10px 11px; border: 0; outline: 0; color: #fff; background: transparent; font-size: 12px; }
.theme1-newsletter button { padding: 0 12px; border: 0; color: #fff; background: #168fce; cursor: pointer; font-size: 12px; }
.theme1-footer-bottom { display: flex; justify-content: space-between; gap: 15px; padding: 17px 0 25px; border-top: 1px solid #202227; color: #727781; font-size: 12px; }
.theme1-footer-bottom a { color: #8d939e; text-decoration: none; }
.theme1-footer-bottom a:hover { color: #fff; }
.theme1-mobile-bar { display: none; }

/* Existing inner screens remain compatible with the new shell. */
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 10px 16px; font-weight: 600; text-decoration: none; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #138dce, #1474c5); }
.btn-secondary { color: #c4c8d0; border: 1px solid #30333a; background: #141519; }
.text-gradient { color: var(--t1-blue-2); }
.contact-widget { position: fixed; z-index: 120; right: 20px; bottom: 20px; display: grid; justify-items: end; gap: 10px; }
.contact-widget-menu { display: grid; gap: 7px; opacity: 0; pointer-events: none; transform: translateY(7px); transition: .2s ease; }
.cw-open .contact-widget-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.contact-widget-item { display: flex; align-items: center; gap: 8px; padding: 7px 11px 7px 7px; border: 1px solid #2e3139; border-radius: 999px; background: #121317; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.24); }
.contact-widget-item-label { color: #e6e8eb; font-size: 12px; }
.contact-widget-item-icon, .contact-widget-toggle { display: grid; place-items: center; width: 43px; height: 43px; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #a62cf1, #2078e8); }
.contact-widget-item-icon img { width: 23px; height: 23px; object-fit: contain; }
.contact-widget-toggle { position: relative; cursor: pointer; box-shadow: 0 0 0 1px rgba(72,166,255,.25), 0 7px 22px rgba(0,0,0,.35); }
.contact-widget-toggle-close { display: none; }
.cw-open .contact-widget-toggle-icon { display: none; }
.cw-open .contact-widget-toggle-close { display: inline-flex; }
.contact-widget-pulse { position: absolute; right: 1px; bottom: 1px; width: 9px; height: 9px; border: 2px solid #101115; border-radius: 50%; background: #30db8d; }

@media (max-width: 900px) {
    .theme1-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ks-products { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .ks-features { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ks-library-head { grid-template-columns: 1fr; gap: 15px; }
    .ks-library-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ks-browser-content, .ks-detail-hero-image { min-height: 340px; }
}
@media (max-width: 640px) {
    .theme1-header { top: 8px; width: calc(100% - 16px); border-radius: 15px; }
    .theme1-header-inner { min-height: 56px; padding: 7px 9px; }
    .theme1-main { width: min(100% - 20px, var(--t1-max)); padding-top: 78px; }
    .theme1-brand-image { max-width: 130px; height: 32px; }
    .theme1-brand-copy strong { font-size: 13px; }
    .theme1-brand-copy small { font-size: 7px; }
    .theme1-account { padding: 0 10px; }
    .theme1-account-label { display: none; }
    .ks-hero, .ks-hero-slide img { min-height: 165px; }
    .ks-hero-control { width: 32px; height: 32px; }
    .ks-shortcuts { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px 8px; margin-top: 20px; }
    .ks-shortcut-icon { width: 50px; height: 50px; border-radius: 15px; }
    .ks-shortcut span { font-size: 11px; }
    .ks-section { margin-top: 24px; }
    .ks-section-head { align-items: flex-start; flex-direction: column; }
    .ks-view-switcher { width: 100%; }
    .ks-view-switcher button { flex: 1; }
    .ks-category-block { padding: 13px; }
    .ks-products, .ks-catalog[data-view="row"] .ks-products { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
    .ks-library-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .ks-library-grid .ks-product-body { padding: 10px; }
    .ks-product-detail { padding-top: 8px; }
    .ks-browser-bar { gap: 8px; min-height: 41px; padding: 0 10px; }
    .ks-browser-dots { gap: 4px; }
    .ks-browser-dots i { width: 8px; height: 8px; }
    .ks-browser-url { padding: 6px 8px; font-size: 9px; }
    .ks-browser-actions button { width: 24px; height: 24px; }
    .ks-browser-content, .ks-detail-hero-image { min-height: 325px; }
    .ks-detail-content { padding: 22px 15px 20px; }
    .ks-detail-overlay { background: linear-gradient(90deg, rgba(4,7,12,.9), rgba(4,7,12,.42)), linear-gradient(0deg, rgba(4,7,12,.9), transparent 60%); }
    .ks-detail-badges { gap: 5px; margin-bottom: 9px; }
    .ks-detail-badge { min-height: 22px; padding: 3px 7px; font-size: 8px; }
    .ks-detail-content h1 { font-size: 27px; }
    .ks-detail-content p { margin-top: 8px; font-size: 11px; }
    .ks-detail-downloads { margin-top: 13px; gap: 6px; }
    .ks-download-button { padding: 7px 9px; font-size: 10px; }
    .ks-product-body { padding: 9px; }
    .ks-product-name { font-size: 12px; }
    .ks-product-price { font-size: 12px; }
    .ks-steps { gap: 8px; }
    .ks-step { padding: 19px 7px 13px; }
    .ks-step h3 { font-size: 12px; }
    .ks-step p { font-size: 10px; }
    .ks-features, .ks-activity-grid { grid-template-columns: 1fr; }
    .theme1-footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; padding: 35px 0 28px; }
    .theme1-footer-grid > :first-child, .theme1-footer-grid > :last-child { grid-column: 1 / -1; }
    .theme1-footer-bottom { flex-direction: column; align-items: flex-start; }
    .theme1-mobile-bar { position: fixed; z-index: 70; right: 8px; bottom: 8px; left: 8px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px; border: 1px solid #2a2d34; border-radius: 16px; background: rgba(12,13,16,.94); box-shadow: 0 14px 40px rgba(0,0,0,.35); backdrop-filter: blur(17px); }
    .theme1-mobile-bar a { display: grid; justify-items: center; gap: 2px; padding: 4px; color: #858b96; font-size: 10px; text-decoration: none; }
    .theme1-mobile-bar a.active, .theme1-mobile-bar a:hover { color: var(--t1-blue-2); }
    .theme1-mobile-bar svg { width: 17px; height: 17px; }
    .contact-widget { right: 15px; bottom: 78px; }
}

/* Reference storefront chrome: utility strip, wide navigation and theme switch. */
@font-face { font-family: 'ReferenceDisplay'; src: url('../reference/fonts/display-1.woff2') format('woff2'); font-display: swap; }
.theme1-header { top: 10px; border-color: rgba(255,255,255,.09); background: rgba(7,8,10,.94); }
.theme1-utility-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.07); color: #858b96; font-size: 11px; }
.theme1-utility-left, .theme1-utility-actions { display: flex; align-items: center; gap: 15px; }
.theme1-utility-link, .theme1-utility-hours { display: inline-flex; align-items: center; gap: 6px; color: #a9afb9; text-decoration: none; white-space: nowrap; }
.theme1-utility-link:hover { color: var(--t1-blue-2); }
.theme1-utility-link svg { width: 13px; height: 13px; color: var(--t1-blue-2); }
.theme1-utility-hours strong { color: #dfe4ea; font-weight: 600; }
.theme1-top-action { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 27px; height: 27px; padding: 0; border: 0; color: #9298a3; background: transparent; cursor: pointer; text-decoration: none; }
.theme1-top-action:hover { color: #fff; }
.theme1-top-action svg { width: 15px; height: 15px; }
.theme1-top-action.has-badge b { position: absolute; top: -3px; right: -5px; display: grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; color: #fff; background: #ef5573; font-size: 8px; font-weight: 700; }
.theme1-top-action.theme1-language { gap: 5px; width: auto; padding: 0 5px; font-size: 10px; }
.theme1-header-inner { min-height: 67px; padding: 9px 16px; }
.theme1-brand-image { width: auto; max-width: 168px; height: 39px; }
.theme1-main-nav { display: flex; align-items: center; gap: 4px; margin-left: 22px; }
.theme1-main-nav a { position: relative; padding: 10px 10px; border-radius: 9px; color: #a7adb7; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: .2s ease; }
.theme1-main-nav a:hover, .theme1-main-nav a.active { color: #fff; background: rgba(53,196,255,.09); }
.theme1-main-nav a.active::after { position: absolute; right: 10px; bottom: 3px; left: 10px; height: 2px; content: ''; border-radius: 2px; background: var(--t1-blue-2); }
.theme1-main { padding-top: 137px; }
.ks-hero { aspect-ratio: 3.55 / 1; min-height: 240px; }
.ks-hero-slide img { min-height: 240px; }
.ks-shortcuts { grid-template-columns: repeat(8, minmax(0,1fr)); gap: 12px; margin-top: 24px; }
.ks-shortcut-icon { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(145deg, rgba(13,55,76,.75), rgba(8,17,25,.96)); }
.ks-shortcut span { line-height: 1.25; }
.theme1-footer-status { display: inline-flex; align-items: center; gap: 6px; color: #55dda0; font-size: 12px; }
.theme1-footer-status svg { width: 14px; height: 14px; }
.theme1-payment { margin: 17px 0 0; color: #87909c; font-size: 12px; }
.theme1-payment span { display: inline-block; margin-left: 5px; padding: 3px 7px; border: 1px solid #2a3039; border-radius: 5px; color: #d9e7f5; background: #121820; }
.theme1-brand-copy { font-family: 'ReferenceDisplay', 'Signika', sans-serif; }

/* Light mode keeps the same spacing, rounded geometry and accent palette. */
body.theme1-body[data-theme="light"] { --t1-bg: #f4f7fb; --t1-surface: #ffffff; --t1-card: #ffffff; --t1-card-2: #f7f9fc; --t1-line: #dce5ef; --t1-muted: #687587; --t1-text: #182334; background: var(--t1-bg); color: var(--t1-text); }
body.theme1-body[data-theme="light"] .theme1-header { border-color: #dbe4ee; background: rgba(255,255,255,.95); box-shadow: 0 14px 42px rgba(35,61,91,.12); }
body.theme1-body .theme1-light-brand-copy { display: none; color: #152031; font-size: 1.1rem; font-weight: 800; letter-spacing: -.04em; line-height: .9; white-space: nowrap; }
body.theme1-body .theme1-light-brand-copy small { display: block; margin-top: .22rem; color: #5b6b7d; font-size: .38rem; font-weight: 600; letter-spacing: .04em; }
body.theme1-body[data-theme="light"] .theme1-brand-image { display: none; }
body.theme1-body[data-theme="light"] .theme1-light-brand-copy { display: block; }
body.theme1-body[data-theme="light"] .theme1-utility-bar { border-color: #e4eaf1; color: #647184; }
body.theme1-body[data-theme="light"] .theme1-utility-link, body.theme1-body[data-theme="light"] .theme1-utility-hours { color: #657386; }
body.theme1-body[data-theme="light"] .theme1-utility-hours strong, body.theme1-body[data-theme="light"] .theme1-main-nav a.active, body.theme1-body[data-theme="light"] .theme1-main-nav a:hover { color: #172033; }
body.theme1-body[data-theme="light"] .theme1-top-action, body.theme1-body[data-theme="light"] .theme1-main-nav a { color: #667386; }
body.theme1-body[data-theme="light"] .theme1-main-nav a:hover, body.theme1-body[data-theme="light"] .theme1-main-nav a.active { background: #edf6fc; }
body.theme1-body[data-theme="light"] .theme1-icon-button:hover { color: #17314e; border-color: #d5e0eb; background: #f0f5fa; }
body.theme1-body[data-theme="light"] .theme1-account { color: #fff; }
body.theme1-body[data-theme="light"] .theme1-search-field input { border-color: #d9e3ee; color: #1b2a3b; background: #fff; }
body.theme1-body[data-theme="light"] .theme1-search-results { border-color: #dce5ef; background: #fff; box-shadow: 0 18px 40px rgba(35,61,91,.15); }
body.theme1-body[data-theme="light"] .theme1-menu-drawer { border-color: #dce5ef; background: #fff; box-shadow: 16px 0 50px rgba(35,61,91,.16); }
body.theme1-body[data-theme="light"] .theme1-drawer-top, body.theme1-body[data-theme="light"] .theme1-drawer-nav a:hover, body.theme1-body[data-theme="light"] .theme1-drawer-nav a.active { color: #182334; }
body.theme1-body[data-theme="light"] .theme1-drawer-account { border-color: #dce5ef; background: linear-gradient(135deg, #eff9ff, #f9f7ff); }
body.theme1-body[data-theme="light"] .theme1-drawer-nav a { color: #667386; }
body.theme1-body[data-theme="light"] .theme1-drawer-nav a > svg { color: #159fd9; }
body.theme1-body[data-theme="light"] .theme1-drawer-nav a:hover > svg, body.theme1-body[data-theme="light"] .theme1-drawer-nav a.active > svg { color: #0b78ad; }
body.theme1-body[data-theme="light"] .ks-section-title, body.theme1-body[data-theme="light"] .ks-category-name, body.theme1-body[data-theme="light"] .ks-product-name, body.theme1-body[data-theme="light"] .ks-activity-head h3 { color: #172033; }
body.theme1-body[data-theme="light"] .ks-section-subtitle, body.theme1-body[data-theme="light"] .ks-category-count, body.theme1-body[data-theme="light"] .ks-product-price small { color: #758397; }
body.theme1-body[data-theme="light"] .ks-hero, body.theme1-body[data-theme="light"] .ks-category-block, body.theme1-body[data-theme="light"] .ks-product, body.theme1-body[data-theme="light"] .ks-activity { border-color: #dce5ef; background: #fff; box-shadow: 0 8px 24px rgba(35,61,91,.055); }
body.theme1-body[data-theme="light"] .ks-step { border-color: rgba(21,159,229,.22); background: linear-gradient(180deg, rgba(21,159,229,.075), rgba(255,255,255,.98) 72%), #fff; box-shadow: 0 8px 24px rgba(35,61,91,.055); }
body.theme1-body[data-theme="light"] .ks-step:nth-child(2) { border-color: rgba(139,92,246,.22); background: linear-gradient(180deg, rgba(139,92,246,.075), rgba(255,255,255,.98) 72%), #fff; }
body.theme1-body[data-theme="light"] .ks-step:nth-child(3) { border-color: rgba(53,211,138,.22); background: linear-gradient(180deg, rgba(53,211,138,.075), rgba(255,255,255,.98) 72%), #fff; }
body.theme1-body[data-theme="light"] .ks-feature { border-color: rgba(21,159,229,.18); background: linear-gradient(180deg, rgba(21,159,229,.055), rgba(255,255,255,.98) 84%), #fff; box-shadow: 0 8px 24px rgba(35,61,91,.055); }
body.theme1-body[data-theme="light"] .ks-feature:nth-child(2) { border-color: rgba(139,92,246,.18); background: linear-gradient(180deg, rgba(139,92,246,.06), rgba(255,255,255,.98) 84%), #fff; }
body.theme1-body[data-theme="light"] .ks-feature:nth-child(3) { border-color: rgba(71,139,255,.18); background: linear-gradient(180deg, rgba(71,139,255,.06), rgba(255,255,255,.98) 84%), #fff; }
body.theme1-body[data-theme="light"] .ks-feature:nth-child(4) { border-color: rgba(53,211,138,.18); background: linear-gradient(180deg, rgba(53,211,138,.055), rgba(255,255,255,.98) 84%), #fff; }
body.theme1-body[data-theme="light"] .ks-shortcut { color: #44536a; }
body.theme1-body[data-theme="light"] .ks-shortcut-icon { border-color: #b9def0; background: linear-gradient(145deg, #effaff, #f5f9fe); }
body.theme1-body[data-theme="light"] .ks-notice, body.theme1-body[data-theme="light"] .ks-ticker { border-color: #dce5ef; background: #fff; color: #526177; }
body.theme1-body[data-theme="light"] .ks-ticker-track { color: #657386; }
body.theme1-body[data-theme="light"] .ks-view-switcher button, body.theme1-body[data-theme="light"] .ks-filter { border-color: #d8e2ed; color: #667386; background: #fff; }
body.theme1-body[data-theme="light"] .ks-view-switcher button:hover, body.theme1-body[data-theme="light"] .ks-view-switcher button.is-active, body.theme1-body[data-theme="light"] .ks-filter:hover, body.theme1-body[data-theme="light"] .ks-filter.is-active { color: #146f9e; border-color: #77ccef; background: #edf8fd; }
body.theme1-body[data-theme="light"] .ks-product-buy { color: #fff; border-color: transparent; background: linear-gradient(135deg, #16a9e3, #158fda); box-shadow: 0 7px 16px rgba(21,159,229,.18); }
body.theme1-body[data-theme="light"] .ks-activity-head, body.theme1-body[data-theme="light"] .ks-activity-item { border-color: #e6edf4; }
body.theme1-body[data-theme="light"] .ks-activity-head-icon { border-color: #b9e5f6; color: #159fd9; background: #eaf9fe; }
body.theme1-body[data-theme="light"] .ks-activity-deposits .ks-activity-head-icon { border-color: #b9ecd7; color: #14ad70; background: #ebfbf4; }
body.theme1-body[data-theme="light"] .ks-activity-head h3 { color: #149bd4; }
body.theme1-body[data-theme="light"] .ks-activity-deposits .ks-activity-head h3 { color: #14ad70; }
body.theme1-body[data-theme="light"] .ks-activity-count { border-color: #c5eafa; color: #159fd9; background: #effaff; }
body.theme1-body[data-theme="light"] .ks-activity-deposits .ks-activity-count { border-color: #c6efdf; color: #14ad70; background: #effbf5; }
body.theme1-body[data-theme="light"] .ks-activity-avatar { border-color: #b9e5f6; color: #fff; background: linear-gradient(145deg, #67d0ef, #159fd9); box-shadow: inset 0 0 0 4px rgba(255,255,255,.6); }
body.theme1-body[data-theme="light"] .ks-activity-deposits .ks-activity-avatar { border-color: #b9ecd7; background: linear-gradient(145deg, #7be1b4, #14ad70); }
body.theme1-body[data-theme="light"] .ks-activity-copy strong { color: #243247; }
body.theme1-body[data-theme="light"] .ks-activity-copy strong em { color: #788699; }
body.theme1-body[data-theme="light"] .ks-activity-copy small, body.theme1-body[data-theme="light"] .ks-activity-head span, body.theme1-body[data-theme="light"] .ks-step p, body.theme1-body[data-theme="light"] .ks-feature p { color: #788699; }
body.theme1-body[data-theme="light"] .ks-activity-copy small b { color: #159fd9; }
body.theme1-body[data-theme="light"] .ks-activity-deposits .ks-activity-copy small b { color: #14ad70; }
body.theme1-body[data-theme="light"] .ks-activity-amount { color: #172033; }
body.theme1-body[data-theme="light"] .ks-activity-credit { color: #0da96c; }
body.theme1-body[data-theme="light"] .theme1-footer { border-color: #dce5ef; background: #fff; }
body.theme1-body[data-theme="light"] .theme1-footer h3 { color: #1a2638; }
body.theme1-body[data-theme="light"] .theme1-footer-brand, body.theme1-body[data-theme="light"] .theme1-footer-links a, body.theme1-body[data-theme="light"] .theme1-footer-bottom { color: #687587; }
body.theme1-body[data-theme="light"] .theme1-socials a, body.theme1-body[data-theme="light"] .theme1-newsletter { border-color: #d9e3ee; background: #f8fafc; }
body.theme1-body[data-theme="light"] .theme1-newsletter input { color: #172033; }
body.theme1-body[data-theme="light"] .theme1-footer-bottom { border-color: #e3eaf1; }
body.theme1-body[data-theme="light"] .contact-widget-item { border-color: #dce5ef; background: #fff; box-shadow: 0 8px 24px rgba(35,61,91,.15); }
body.theme1-body[data-theme="light"] .contact-widget-item-label { color: #243247; }

@media (max-width: 1040px) {
    .theme1-main-nav { gap: 0; margin-left: 9px; }
    .theme1-main-nav a { padding-inline: 7px; font-size: 11px; }
}
@media (max-width: 900px) {
    .theme1-main-nav { display: none; }
    .theme1-main { padding-top: 127px; }
    .ks-shortcuts { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .theme1-header { top: 6px; }
    .theme1-utility-bar { min-height: 31px; padding-inline: 10px; }
    .theme1-utility-hours, .theme1-top-action.theme1-language span { display: none; }
    .theme1-utility-left { gap: 7px; }
    .theme1-utility-actions { gap: 7px; }
    .theme1-header-inner { min-height: 55px; padding: 7px 9px; }
    .theme1-brand-image { max-width: 136px; height: 31px; }
    .theme1-main { padding-top: 102px; }
    .ks-hero, .ks-hero-slide img { min-height: 165px; }
    .ks-shortcuts { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 17px 6px; }
    .ks-shortcut-icon { width: 47px; height: 47px; }
}

/* Reference-style floating music player and mobile navigation. */
.theme1-menu-drawer { overflow-y: auto; }
.theme1-music-player { position: fixed; z-index: 130; right: 24px; bottom: 24px; width: min(335px, calc(100vw - 32px)); pointer-events: auto; user-select: none; }
@media (min-width: 901px) {
    .theme1-music-player, .theme1-music-reopen { right: 94px; z-index: 130; }
}
.theme1-music-player[hidden], .theme1-music-reopen[hidden] { display: none !important; }
.theme1-music-glow { position: absolute; z-index: -1; inset: -12px; border-radius: 44px; background: linear-gradient(45deg, rgba(21,159,229,.35), rgba(59,130,246,.2), rgba(217,70,239,.25)); filter: blur(24px); opacity: .8; animation: theme1MusicPulse 3.8s ease-in-out infinite; }
@keyframes theme1MusicPulse { 0%, 100% { opacity: .55; transform: scale(.98); } 50% { opacity: .86; transform: scale(1.02); } }
.theme1-music-card { position: relative; overflow: hidden; padding: 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 32px; color: #fff; background: rgba(10,12,16,.88); box-shadow: 0 30px 75px -12px rgba(0,0,0,.72), inset 0 1.5px 2px rgba(255,255,255,.1); backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%); transition: padding .25s ease, border-radius .25s ease; }
.theme1-music-card::before { position: absolute; top: -110%; right: -75%; width: 140%; height: 170%; content: ''; background: linear-gradient(135deg, transparent 42%, rgba(255,255,255,.09) 50%, transparent 58%); transform: rotate(-25deg); pointer-events: none; }
.theme1-music-handle { width: 36px; height: 4px; margin: 0 auto 12px; border-radius: 99px; background: rgba(255,255,255,.25); }
.theme1-music-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.theme1-music-heading, .theme1-music-head-actions { display: flex; align-items: center; gap: 7px; min-width: 0; }
.theme1-music-badge { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.theme1-music-badge svg { width: 14px; height: 14px; color: var(--t1-blue-2); flex: 0 0 14px; }
.theme1-music-badge b { font-size: 11px; line-height: 1; white-space: nowrap; }
.theme1-music-count { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: rgba(255,255,255,.65); font-size: 10px; white-space: nowrap; }
.theme1-soundwave { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; margin-left: 2px; }
.theme1-soundwave i { display: block; width: 2px; border-radius: 99px; background: var(--t1-blue-2); animation: theme1Sound 1s ease-in-out infinite; }
.theme1-soundwave i:nth-child(1) { height: 5px; animation-delay: -.3s; }
.theme1-soundwave i:nth-child(2) { height: 10px; animation-delay: -.55s; }
.theme1-soundwave i:nth-child(3) { height: 7px; animation-delay: -.15s; }
.theme1-soundwave i:nth-child(4) { height: 11px; animation-delay: -.75s; }
@keyframes theme1Sound { 0%, 100% { transform: scaleY(.55); opacity: .55; } 50% { transform: scaleY(1); opacity: 1; } }
.theme1-music-icon, .theme1-music-controls button, .theme1-music-volume button { display: grid; place-items: center; border: 0; color: rgba(255,255,255,.72); background: transparent; cursor: pointer; transition: color .2s ease, background .2s ease, transform .2s ease; }
.theme1-music-icon { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.08); }
.theme1-music-icon:hover, .theme1-music-controls button:hover, .theme1-music-volume button:hover { color: #fff; background: rgba(255,255,255,.14); }
.theme1-music-icon svg { width: 16px; height: 16px; }
.theme1-music-body { display: grid; gap: 14px; padding-top: 14px; }
.theme1-music-track { display: flex; align-items: center; gap: 13px; min-width: 0; }
.theme1-music-disc-shell { display: grid; place-items: center; width: 68px; height: 68px; flex: 0 0 68px; border: 1px solid rgba(255,255,255,.15); border-radius: 22px; background: linear-gradient(135deg, #1b2029, #090b0f); box-shadow: 0 14px 28px rgba(0,0,0,.3); }
.theme1-music-disc { position: relative; display: grid; place-items: center; width: 51px; height: 51px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: radial-gradient(circle at 50% 50%, #20b4ed 0 7%, #101419 8% 24%, transparent 25%), conic-gradient(from 15deg, #323b47, #0c0f13, #687382, #0b0e12, #323b47); box-shadow: inset 0 0 0 4px #12161c, 0 5px 12px rgba(0,0,0,.35); animation: theme1Disc 4s linear infinite; }
.theme1-music-disc.has-cover { overflow: hidden; background: #111820; }
.theme1-music-disc.has-cover::before { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(0,0,0,.05), rgba(0,0,0,.38)); content: ''; pointer-events: none; }
.theme1-music-disc img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.theme1-music-disc.has-cover > span { z-index: 1; border-color: rgba(255,255,255,.9); background: #159fe5; box-shadow: 0 0 0 3px rgba(0,0,0,.28); }
.theme1-music-disc::after { position: absolute; inset: 5px; border: 1px solid rgba(255,255,255,.12); border-radius: inherit; content: ''; }
.theme1-music-disc span { position: relative; z-index: 1; width: 7px; height: 7px; border: 2px solid rgba(255,255,255,.85); border-radius: 50%; background: #159fe5; }
.theme1-music-card:not(.is-playing) .theme1-music-disc { animation-play-state: paused; }
@keyframes theme1Disc { to { transform: rotate(360deg); } }
.theme1-music-copy { display: grid; gap: 3px; min-width: 0; }
.theme1-music-copy strong { overflow: hidden; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.theme1-music-copy small { overflow: hidden; color: rgba(255,255,255,.58); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.theme1-music-copy em { width: fit-content; padding: 3px 6px; border-radius: 5px; color: rgba(255,255,255,.64); background: rgba(255,255,255,.08); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-style: normal; }
.theme1-music-progress, .theme1-music-volume { display: grid; gap: 4px; }
.theme1-music-progress input, .theme1-music-volume input { width: 100%; height: 5px; accent-color: var(--t1-blue-2); cursor: pointer; }
.theme1-music-progress input::-webkit-slider-runnable-track, .theme1-music-volume input::-webkit-slider-runnable-track { height: 5px; border-radius: 99px; background: rgba(255,255,255,.16); }
.theme1-music-progress input::-webkit-slider-thumb, .theme1-music-volume input::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -4.5px; border: 2px solid var(--t1-blue-2); border-radius: 50%; background: var(--t1-blue-2); appearance: none; }
.theme1-music-progress > div { display: flex; justify-content: space-between; padding: 0 2px; color: rgba(255,255,255,.5); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.theme1-music-controls { display: flex; align-items: center; justify-content: space-between; padding: 1px 7px 0; }
.theme1-music-controls button { width: 32px; height: 32px; border-radius: 50%; }
.theme1-music-controls button svg { width: 16px; height: 16px; }
.theme1-music-controls button.is-active { color: var(--t1-blue-2); background: rgba(21,159,229,.12); }
.theme1-music-controls .theme1-music-play { width: 52px; height: 52px; color: #fff; background: var(--t1-blue); box-shadow: 0 10px 24px rgba(21,159,229,.35); }
.theme1-music-controls .theme1-music-play:hover { background: #23b6ed; transform: scale(1.04); }
.theme1-music-controls .theme1-music-play svg { width: 22px; height: 22px; fill: currentColor; }
.theme1-music-volume { grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 1px 3px 0; }
.theme1-music-volume button { width: 22px; height: 22px; border-radius: 50%; }
.theme1-music-volume button svg { width: 15px; height: 15px; }
.theme1-music-volume span { width: 28px; color: rgba(255,255,255,.42); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-align: right; }
.theme1-music-card.is-collapsed { padding-bottom: 12px; }
.theme1-music-card.is-collapsed .theme1-music-body { display: none; }
.theme1-music-card.is-collapsed .theme1-music-handle { margin-bottom: 9px; }
.theme1-music-reopen { position: fixed; z-index: 130; right: 24px; bottom: 24px; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: #fff; background: var(--t1-blue); box-shadow: 0 12px 30px rgba(21,159,229,.35); cursor: pointer; }
.theme1-music-reopen svg { width: 20px; height: 20px; }
.theme1-mobile-bar button { border: 0; font: inherit; cursor: pointer; }

body.theme1-body[data-theme="light"] .theme1-mobile-bar { border-color: #dce5ef; background: rgba(255,255,255,.94); box-shadow: 0 14px 40px rgba(35,61,91,.18); }
body.theme1-body[data-theme="light"] .theme1-mobile-bar a, body.theme1-body[data-theme="light"] .theme1-mobile-bar button { color: #758397; }
body.theme1-body[data-theme="light"] .theme1-mobile-bar a.active, body.theme1-body[data-theme="light"] .theme1-mobile-bar a:hover, body.theme1-body[data-theme="light"] .theme1-mobile-bar button:hover { color: #159fd9; }
body.theme1-body[data-theme="light"] .theme1-music-card { border-color: rgba(255,255,255,.85); color: #172033; background: rgba(255,255,255,.86); box-shadow: 0 25px 65px -12px rgba(35,61,91,.2), inset 0 1.5px 2px rgba(255,255,255,.95); }
body.theme1-body[data-theme="light"] .theme1-music-handle { background: #cbd5e1; }
body.theme1-body[data-theme="light"] .theme1-music-head { border-color: #e2e8f0; }
body.theme1-body[data-theme="light"] .theme1-music-badge { color: #172033; border-color: #e2e8f0; background: rgba(241,245,249,.84); }
body.theme1-body[data-theme="light"] .theme1-music-count { border-color: #d5dee9; color: #687587; }
body.theme1-body[data-theme="light"] .theme1-music-icon { color: #475569; background: #f1f5f9; }
body.theme1-body[data-theme="light"] .theme1-music-icon:hover { color: #172033; background: #e2e8f0; }
body.theme1-body[data-theme="light"] .theme1-music-copy strong { color: #172033; }
body.theme1-body[data-theme="light"] .theme1-music-copy small, body.theme1-body[data-theme="light"] .theme1-music-progress > div, body.theme1-body[data-theme="light"] .theme1-music-volume span { color: #758397; }
body.theme1-body[data-theme="light"] .theme1-music-copy em { color: #687587; background: #f1f5f9; }
body.theme1-body[data-theme="light"] .theme1-music-progress input::-webkit-slider-runnable-track, body.theme1-body[data-theme="light"] .theme1-music-volume input::-webkit-slider-runnable-track { background: #dce5ef; }
body.theme1-body[data-theme="light"] .theme1-music-controls button, body.theme1-body[data-theme="light"] .theme1-music-volume button { color: #64748b; }
body.theme1-body[data-theme="light"] .theme1-music-controls button:hover, body.theme1-body[data-theme="light"] .theme1-music-volume button:hover { color: #172033; background: #f1f5f9; }

@media (max-width: 640px) {
    .theme1-music-player { right: 14px; bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)); width: min(310px, calc(100vw - 28px)); }
    .theme1-music-reopen { right: 14px; bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)); }
    .theme1-music-card { padding: 14px; }
    .theme1-music-track { gap: 10px; }
    .theme1-music-disc-shell { width: 62px; height: 62px; flex-basis: 62px; border-radius: 19px; }
    .theme1-music-disc { width: 47px; height: 47px; }
    .theme1-mobile-bar { grid-template-columns: repeat(5, 1fr); }
    .theme1-mobile-bar a, .theme1-mobile-bar button { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 4px 2px; color: #858b96; background: transparent; font-size: 10px; text-decoration: none; }
    .theme1-mobile-bar a.active, .theme1-mobile-bar a:hover, .theme1-mobile-bar button:hover { color: var(--t1-blue-2); }
}

/* Keep the reference floating mobile navigation visible on compact tablets and
   in-app browser widths just above the phone breakpoint. */
@media (max-width: 760px) {
    .theme1-header { width: calc(100% - 16px); }
    .theme1-main { width: min(100% - 20px, var(--t1-max)); padding-top: 102px; }
    .theme1-mobile-bar { position: fixed; z-index: 70; right: 8px; bottom: 8px; left: 8px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px; border: 1px solid #2a2d34; border-radius: 16px; background: rgba(12,13,16,.94); box-shadow: 0 14px 40px rgba(0,0,0,.35); backdrop-filter: blur(17px); }
    .theme1-mobile-bar a, .theme1-mobile-bar button { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 4px 2px; color: #858b96; background: transparent; font-size: 10px; text-decoration: none; }
    .theme1-mobile-bar a.active, .theme1-mobile-bar a:hover, .theme1-mobile-bar button:hover { color: var(--t1-blue-2); }
    .theme1-mobile-bar svg { width: 17px; height: 17px; }
    .theme1-music-player { right: 14px; bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)); width: min(310px, calc(100vw - 28px)); }
    .theme1-music-reopen { right: 14px; bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)); }
}

/* Shared inner-screen UX skin for orders, top-up and authentication pages. */
body.theme1-body .bg-dark-card, body.theme1-body .auth-card { border-color: #24262c; border-radius: 18px; background: linear-gradient(145deg, #111216, #0b0c0f); box-shadow: 0 16px 40px rgba(0,0,0,.16); }
body.theme1-body .bg-dark-surface { background: #0b0c0f; }
body.theme1-body .border-dark-border { border-color: #24262c; }
body.theme1-body .auth-card { padding: 28px; }
body.theme1-body .auth-input { width: 100%; padding: 12px 14px 12px 42px; border: 1px solid #2b2e35; border-radius: 12px; outline: none; color: #fff; background: #0b0c0f; transition: border-color .2s ease, box-shadow .2s ease; }
body.theme1-body .auth-input:focus { border-color: rgba(53,196,255,.62); box-shadow: 0 0 0 3px rgba(53,196,255,.08); }
body.theme1-body .auth-input-icon { position: absolute; top: 50%; left: 14px; display: grid; place-items: center; color: var(--t1-blue-2); transform: translateY(-50%); }
body.theme1-body .section-title { margin: 0; color: #f4f5f7; font-family: 'Signika', sans-serif; font-size: clamp(24px, 3vw, 32px); font-weight: 650; letter-spacing: -.025em; }
body.theme1-body .section-line { width: 56px; height: 3px; margin-top: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--t1-blue-2), var(--t1-purple)); }
body.theme1-body .mk-btn-order { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; border: 1px solid transparent; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #16a9e3, #158fda); box-shadow: 0 8px 19px rgba(21,159,229,.2); font-weight: 700; transition: transform .2s ease, filter .2s ease, box-shadow .2s ease; }
body.theme1-body .mk-btn-order:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(21,159,229,.28); }
body.theme1-body .bank-btn, body.theme1-body .amount-btn { border-color: #24262c !important; border-radius: 13px; background: #0b0c0f !important; }
body.theme1-body .bank-btn:hover, body.theme1-body .amount-btn:hover, body.theme1-body .bank-btn.border-neon-cyan\/30, body.theme1-body .amount-btn.border-neon-cyan\/30 { border-color: rgba(53,196,255,.45) !important; background: rgba(21,159,229,.08) !important; }
body.theme1-body .qr-corner { border-color: var(--t1-blue-2); }

body.theme1-body[data-theme="light"] .bg-dark-card, body.theme1-body[data-theme="light"] .auth-card { border-color: #dce5ef; background: linear-gradient(145deg, #fff, #f7f9fc); box-shadow: 0 12px 30px rgba(35,61,91,.07); }
body.theme1-body[data-theme="light"] .bg-dark-surface { background: #f7f9fc; }
body.theme1-body[data-theme="light"] .border-dark-border { border-color: #dce5ef; }
body.theme1-body[data-theme="light"] .auth-input { border-color: #d6e1ec; color: #172033; background: #fff; }
body.theme1-body[data-theme="light"] .auth-input:focus { border-color: #65c8ed; box-shadow: 0 0 0 3px rgba(21,159,229,.1); }
body.theme1-body[data-theme="light"] .section-title { color: #172033; }
body.theme1-body[data-theme="light"] .bank-btn, body.theme1-body[data-theme="light"] .amount-btn { border-color: #dce5ef !important; background: #fff !important; }
body.theme1-body[data-theme="light"] .bank-btn:hover, body.theme1-body[data-theme="light"] .amount-btn:hover, body.theme1-body[data-theme="light"] .bank-btn.border-neon-cyan\/30, body.theme1-body[data-theme="light"] .amount-btn.border-neon-cyan\/30 { border-color: #77ccef !important; background: #edf8fd !important; }

@media (max-width: 640px) {
    body.theme1-body .auth-card { padding: 22px 17px; }
    body.theme1-body .theme1-main > section.py-8, body.theme1-body .theme1-main > section.py-10 { padding-top: 22px; padding-bottom: 92px; }
}

/* Homepage utility sections: downloads, top-up leaderboard, support and community. */
.ks-utility-sections { scroll-margin-top: 108px; }
.ks-utility-sections + .ks-section, #top-deposit, #support, #community { scroll-margin-top: 108px; }
.ks-section-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(53,196,255,.2); border-radius: 999px; color: #7fdcff; background: rgba(53,196,255,.07); font-size: 11px; font-weight: 700; white-space: nowrap; }
.ks-section-chip svg { width: 14px; height: 14px; }
.ks-chip-gold { border-color: rgba(245,190,72,.25); color: #f4c66b; background: rgba(245,190,72,.08); }
.ks-chip-green { border-color: rgba(70,218,145,.22); color: #68e2a0; background: rgba(70,218,145,.08); }
.ks-download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ks-download-card { position: relative; display: flex; align-items: center; gap: 13px; min-height: 94px; padding: 17px; overflow: hidden; border: 1px solid #242831; border-radius: 18px; color: #f3f6fa; background: linear-gradient(135deg, rgba(18,20,26,.98), rgba(11,13,17,.92)); box-shadow: 0 14px 34px rgba(0,0,0,.12); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; text-decoration: none; }
.ks-download-card::after { position: absolute; right: -22px; bottom: -36px; width: 100px; height: 100px; border-radius: 50%; background: rgba(53,196,255,.08); content: ''; filter: blur(1px); }
.ks-download-card:hover { border-color: rgba(53,196,255,.4); box-shadow: 0 18px 40px rgba(0,0,0,.2), 0 0 22px rgba(53,196,255,.08); transform: translateY(-3px); }
.ks-download-icon { z-index: 1; display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #63d9ff; background: rgba(53,196,255,.12); }
.ks-download-icon svg { width: 20px; height: 20px; }
.ks-download-card > span:nth-child(2) { z-index: 1; display: grid; gap: 4px; min-width: 0; }
.ks-download-card strong { font-size: 14px; }
.ks-download-card small { color: #858e9b; font-size: 11px; line-height: 1.35; }
.ks-download-arrow { z-index: 1; width: 16px; height: 16px; margin-left: auto; color: #687483; }
.ks-accent-purple .ks-download-icon { color: #c5a3ff; background: rgba(149,102,255,.14); }
.ks-accent-purple:hover { border-color: rgba(171,132,255,.42); }
.ks-accent-green .ks-download-icon { color: #78e6a8; background: rgba(70,218,145,.14); }
.ks-accent-green:hover { border-color: rgba(70,218,145,.4); }
.ks-leaderboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ks-leader-row { display: flex; align-items: center; gap: 11px; min-height: 67px; padding: 10px 13px; border: 1px solid #242831; border-radius: 15px; background: #0f1115; }
.ks-leader-row.is-top { border-color: rgba(245,190,72,.22); background: linear-gradient(135deg, rgba(55,41,20,.56), rgba(15,17,21,.94)); }
.ks-rank { display: grid; flex: 0 0 26px; place-items: center; width: 26px; height: 26px; border-radius: 9px; color: #9da5b0; background: #1c2027; font-size: 12px; font-weight: 800; }
.ks-rank-1 { color: #2b210f; background: linear-gradient(135deg, #ffe18a, #e7a92f); }
.ks-rank-2 { color: #20262e; background: linear-gradient(135deg, #e6edf5, #98a9bb); }
.ks-rank-3 { color: #3b2414; background: linear-gradient(135deg, #e7b68c, #ae673d); }
.ks-leader-avatar { display: grid; flex: 0 0 31px; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(53,196,255,.22); border-radius: 50%; color: #8fddfa; background: rgba(53,196,255,.1); font-size: 12px; font-weight: 800; }
.ks-leader-copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
.ks-leader-copy strong { overflow: hidden; color: #edf2f7; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ks-leader-copy small { color: #6f7885; font-size: 10px; }
.ks-leader-total { color: #f4c66b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; white-space: nowrap; }
.ks-leader-empty { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 88px; border: 1px dashed #2b3038; border-radius: 16px; }
.ks-leader-empty svg { width: 20px; height: 20px; color: #b99348; }
.ks-support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ks-support-card { display: grid; align-content: start; gap: 9px; min-height: 190px; padding: 19px; border: 1px solid #242831; border-radius: 18px; color: #f2f4f7; background: linear-gradient(145deg, rgba(17,19,24,.98), rgba(10,12,16,.96)); text-decoration: none; transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.ks-support-card:hover { border-color: rgba(53,196,255,.36); background: linear-gradient(145deg, rgba(17,26,32,.98), rgba(10,15,19,.96)); transform: translateY(-3px); }
.ks-support-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: #70ddff; background: rgba(53,196,255,.1); }
.ks-support-icon svg { width: 19px; height: 19px; }
.ks-support-card strong { font-size: 15px; }
.ks-support-card p { margin: 0; color: #858e9b; font-size: 12px; line-height: 1.55; }
.ks-support-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: #57c9f5; font-size: 11px; font-weight: 700; }
.ks-support-link svg { width: 14px; height: 14px; transition: transform .2s ease; }
.ks-support-card:hover .ks-support-link svg { transform: translateX(3px); }
.ks-community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ks-community-card { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 12px 14px; border: 1px solid #242831; border-radius: 15px; color: #eef2f7; background: rgba(14,16,21,.86); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.ks-community-card:hover { border-color: rgba(53,196,255,.36); transform: translateY(-2px); }
.ks-community-icon { display: grid; flex: 0 0 35px; place-items: center; width: 35px; height: 35px; overflow: hidden; border-radius: 11px; color: #7cdfff; background: rgba(53,196,255,.11); }
.ks-community-icon img { width: 100%; height: 100%; object-fit: cover; }
.ks-community-icon svg { width: 17px; height: 17px; }
.ks-community-card > span:nth-child(2) { display: grid; flex: 1; gap: 2px; min-width: 0; }
.ks-community-card strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ks-community-card small { color: #717b89; font-size: 10px; }
.ks-community-card > svg { width: 15px; height: 15px; color: #718092; }
body.theme1-body[data-theme="light"] .ks-download-card, body.theme1-body[data-theme="light"] .ks-support-card, body.theme1-body[data-theme="light"] .ks-community-card, body.theme1-body[data-theme="light"] .ks-leader-row { border-color: #dce5ef; color: #172033; background: rgba(255,255,255,.8); box-shadow: 0 12px 28px rgba(35,61,91,.06); }
body.theme1-body[data-theme="light"] .ks-download-card small, body.theme1-body[data-theme="light"] .ks-support-card p, body.theme1-body[data-theme="light"] .ks-community-card small, body.theme1-body[data-theme="light"] .ks-leader-copy small { color: #728096; }
body.theme1-body[data-theme="light"] .ks-community-card, body.theme1-body[data-theme="light"] .ks-leader-row { background: #fff; }

@media (max-width: 820px) {
    .ks-download-grid, .ks-support-grid, .ks-community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ks-leaderboard { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .ks-section-chip { display: none; }
    .ks-download-grid, .ks-support-grid, .ks-community-grid { grid-template-columns: 1fr; }
    .ks-download-card { min-height: 82px; }
    .ks-support-card { min-height: 160px; }
}

/* Final reference pass: match the light storefront chrome from keystore67. */
body.theme1-body[data-theme="light"] {
    --t1-bg: #ffffff;
    --t1-surface: #ffffff;
    --t1-card: #ffffff;
    --t1-card-2: #f8fbfe;
    --t1-line: #dce7f0;
    --t1-muted: #6d7b8d;
    --t1-text: #172033;
    background: #ffffff;
}
body.theme1-body[data-theme="light"] .theme1-brand-image { display: block; }
body.theme1-body[data-theme="light"] .theme1-light-brand-copy { display: none; }
body.theme1-body[data-theme="light"] .theme1-utility-link > svg,
body.theme1-body[data-theme="light"] .theme1-utility-hours > svg {
    width: 28px;
    height: 28px;
    padding: 7px;
    border-radius: 50%;
    color: #20a7df;
    background: #e7f8ff;
    stroke-width: 2.2;
}
body.theme1-body[data-theme="light"] .theme1-utility-link,
body.theme1-body[data-theme="light"] .theme1-utility-hours { gap: 8px; }
.theme1-main-nav a { display: inline-flex; align-items: center; gap: 8px; }
.theme1-main-nav a > svg:first-child { width: 17px; height: 17px; color: #1bb0ed; stroke-width: 1.8; }
.theme1-main-nav a .theme1-nav-chevron { width: 13px; height: 13px; margin-left: -2px; color: #7d8898; stroke-width: 1.8; }
body.theme1-body[data-theme="light"] .theme1-main-nav a > svg:first-child { color: #1aaee9; }
body.theme1-body[data-theme="light"] .theme1-main-nav a .theme1-nav-chevron { color: #758397; }
.theme1-main-nav a:hover > svg:first-child,
.theme1-main-nav a.active > svg:first-child { color: #0d8cc5; }

@media (min-width: 1180px) {
    :root { --t1-max: 1600px; }
    .theme1-header,
    .theme1-main { width: min(calc(100% - 34px), var(--t1-max)); }
    .theme1-container { width: min(100%, var(--t1-max)); }
}

body.theme1-body[data-theme="light"] .theme1-header {
    border-color: #dce7f0;
    background: rgba(255,255,255,.97);
    box-shadow: 0 15px 42px rgba(34,77,111,.10);
}
body.theme1-body[data-theme="light"] .theme1-utility-bar { min-height: 44px; }
body.theme1-body[data-theme="light"] .theme1-header-inner { min-height: 76px; padding-inline: 24px; }
body.theme1-body[data-theme="light"] .theme1-brand-image { width: 58px; height: 48px; max-width: 58px; object-fit: contain; }
body.theme1-body[data-theme="light"] .theme1-main-nav { margin-left: auto; gap: 8px; }
body.theme1-body[data-theme="light"] .theme1-main-nav a { padding: 12px 11px; color: #253149; font-size: 15px; font-weight: 650; }
body.theme1-body[data-theme="light"] .theme1-main-nav a:hover,
body.theme1-body[data-theme="light"] .theme1-main-nav a.active { color: #172033; background: #f0f9fd; }
body.theme1-body[data-theme="light"] .theme1-main-nav a.active::after { right: 11px; bottom: 4px; left: 11px; background: #1da9df; }
body.theme1-body[data-theme="light"] .theme1-account { min-height: 50px; padding-inline: 22px; font-size: 15px; box-shadow: 0 9px 20px rgba(17,147,210,.17); }
body.theme1-body[data-theme="light"] .theme1-account svg { width: 20px; height: 20px; }
body.theme1-body[data-theme="light"] .theme1-main { padding-top: 160px; }

body.theme1-body[data-theme="light"] .ks-ref-product-page { padding-top: 22px; }
body.theme1-body[data-theme="light"] .ks-ref-breadcrumb { margin-bottom: 26px; color: #758092; font-size: 15px; }
body.theme1-body[data-theme="light"] .ks-ref-breadcrumb a { color: #687386; }
body.theme1-body[data-theme="light"] .ks-ref-product-grid { grid-template-columns: minmax(0, 1.65fr) minmax(430px, .95fr); gap: 28px; }
body.theme1-body[data-theme="light"] .ks-ref-visual-card { border-color: #dce5ed; border-radius: 21px; box-shadow: 0 17px 42px rgba(31,72,100,.10); }
body.theme1-body[data-theme="light"] .ks-ref-browser-bar { height: 60px; padding-inline: 20px; border-color: #e4ebf1; background: #fff; }
body.theme1-body[data-theme="light"] .ks-ref-visual-media,
body.theme1-body[data-theme="light"] .ks-ref-hero-image { min-height: 520px; }
body.theme1-body[data-theme="light"] .ks-ref-buy-panel {
    position: sticky;
    top: 154px;
    overflow: hidden;
    border-color: #a8dcf4;
    border-radius: 21px;
    background:
        radial-gradient(circle at 95% 0, rgba(87,203,238,.16) 0 46px, transparent 47px),
        radial-gradient(circle at 92% 15%, rgba(87,203,238,.10) 0 14px, transparent 15px),
        linear-gradient(145deg, #effaff 0%, #ffffff 58%, #f5fbff 100%);
    box-shadow: 0 18px 42px rgba(34,122,160,.10);
}
body.theme1-body[data-theme="light"] .ks-ref-buy-panel::after {
    position: absolute;
    top: -28px;
    right: -32px;
    width: 130px;
    height: 130px;
    content: '';
    border: 13px solid rgba(71,190,230,.10);
    border-radius: 28px;
    box-shadow: 0 62px 0 -32px rgba(71,190,230,.09), 0 96px 0 -47px rgba(71,190,230,.08);
    pointer-events: none;
}
body.theme1-body[data-theme="light"] .ks-ref-buy-panel > * { position: relative; z-index: 1; }
body.theme1-body[data-theme="light"] .ks-ref-panel-heading h2 { font-size: 25px; }
body.theme1-body[data-theme="light"] .ks-ref-eyebrow { font-size: 12px; }
body.theme1-body[data-theme="light"] .ks-ref-price-intro { padding-top: 15px; padding-bottom: 19px; border-color: #deebf2; font-size: 13px; }
body.theme1-body[data-theme="light"] .ks-ref-price-intro strong { font-size: 17px; }
body.theme1-body[data-theme="light"] .ks-ref-form-block { padding-top: 19px; }
body.theme1-body[data-theme="light"] .ks-ref-label-row label { color: #182336; font-size: 14px; }
body.theme1-body[data-theme="light"] .ks-ref-label-row span { font-size: 12px; }
body.theme1-body[data-theme="light"] .ks-ref-package-option,
body.theme1-body[data-theme="light"] .ks-ref-quantity-row,
body.theme1-body[data-theme="light"] .ks-ref-coupon-input { background: rgba(255,255,255,.76); }
body.theme1-body[data-theme="light"] .ks-ref-package-option { padding: 14px 14px; border-radius: 15px; }
body.theme1-body[data-theme="light"] .ks-ref-package-copy strong { font-size: 14px; }
body.theme1-body[data-theme="light"] .ks-ref-package-copy small { font-size: 11px; }
body.theme1-body[data-theme="light"] .ks-ref-package-price b { font-size: 15px; }
body.theme1-body[data-theme="light"] .ks-ref-quantity-row { height: 49px; }
body.theme1-body[data-theme="light"] .ks-ref-coupon-input { height: 47px; }
body.theme1-body[data-theme="light"] .ks-ref-summary { background: rgba(255,255,255,.60); }
body.theme1-body[data-theme="light"] .ks-ref-buy-button { min-height: 52px; border-radius: 13px; font-size: 14px; }
body.theme1-body[data-theme="light"] .ks-ref-buy-trust { font-size: 10px; }

/* Floating AI assistant + support button, matching the reference storefront. */
.theme1-ai-float { position: fixed; z-index: 96; right: 25px; bottom: 112px; display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; color: #fff; background: linear-gradient(145deg, #c34bff, #7549ff); box-shadow: 0 12px 28px rgba(116,74,246,.27), 0 0 0 9px rgba(255,255,255,.8); text-decoration: none; }
.theme1-ai-float:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.06); }
.theme1-ai-float-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; color: #fff; background: rgba(255,255,255,.16); }
.theme1-ai-float-icon svg { width: 20px; height: 20px; }
.theme1-ai-sparkle { position: absolute; top: -8px; right: -4px; width: 18px; height: 18px; color: #ffc66d; }
.theme1-float-online { position: absolute; right: -2px; bottom: 1px; width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; background: #14c98d; }
.contact-widget { z-index: 95; }
body.theme1-body[data-theme="light"] .theme1-ai-float { border-color: #fff; box-shadow: 0 12px 28px rgba(116,74,246,.24), 0 0 0 9px rgba(236,242,249,.92); }
body.theme1-body[data-theme="light"] .contact-widget-toggle { width: 58px; height: 58px; box-shadow: 0 0 0 9px rgba(231,239,251,.92), 0 9px 25px rgba(32,105,229,.28); }

@media (max-width: 1100px) {
    body.theme1-body[data-theme="light"] .theme1-main-nav a { padding-inline: 7px; font-size: 13px; }
    body.theme1-body[data-theme="light"] .theme1-main-nav { gap: 1px; }
    body.theme1-body[data-theme="light"] .ks-ref-product-grid { grid-template-columns: minmax(0, 1.35fr) minmax(370px, .9fr); gap: 18px; }
}
@media (max-width: 900px) {
    body.theme1-body[data-theme="light"] .theme1-main { padding-top: 132px; }
    body.theme1-body[data-theme="light"] .theme1-header-inner { min-height: 62px; padding-inline: 12px; }
    body.theme1-body[data-theme="light"] .theme1-brand-image { width: 48px; height: 40px; max-width: 48px; }
    body.theme1-body[data-theme="light"] .ks-ref-product-grid { grid-template-columns: 1fr; }
    body.theme1-body[data-theme="light"] .ks-ref-buy-panel { position: static; }
}
@media (max-width: 560px) {
    .theme1-ai-float { right: 17px; bottom: 119px; width: 50px; height: 50px; }
    .theme1-ai-float-icon { width: 28px; height: 28px; }
    body.theme1-body[data-theme="light"] .theme1-header-inner { min-height: 55px; }
    body.theme1-body[data-theme="light"] .theme1-main { padding-top: 105px; }
    body.theme1-body[data-theme="light"] .ks-ref-visual-media,
    body.theme1-body[data-theme="light"] .ks-ref-hero-image { min-height: 340px; }
}

/* Desktop geometry aligned with the reference page at 1280px: 740px hero + 420px purchase panel. */
@media (min-width: 901px) {
    #theme1MenuToggle { display: none; }
    .ks-product-detail.ks-ref-product-page { width: calc(100% + 15px); }
    body.theme1-body[data-theme="light"] .ks-ref-product-page { padding-top: 18px; }
    body.theme1-body[data-theme="light"] .ks-ref-product-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; }
    body.theme1-body[data-theme="light"] .ks-ref-browser-bar { height: 50px; }
    body.theme1-body[data-theme="light"] .ks-ref-visual-media,
    body.theme1-body[data-theme="light"] .ks-ref-hero-image { min-height: 415px; }
    body.theme1-body[data-theme="light"] .ks-ref-buy-panel { min-height: 826px; }
}

/* Downloads + API reference: dense, brighter reference-style utility pages. */
.ks-download-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid #242831; }
.ks-download-search { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 13px; border: 1px solid #2b323d; border-radius: 13px; color: #6f7b8a; background: rgba(15,17,22,.72); }
.ks-download-search svg { width: 17px; height: 17px; flex: 0 0 17px; stroke-width: 2.25; }
.ks-download-search input { width: 100%; border: 0; outline: 0; color: #ecf2f7; background: transparent; font-size: 12px; }
.ks-download-search input::placeholder { color: #697484; }
.ks-download-filters, .ks-download-sorts { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ks-download-filters button, .ks-download-sorts button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 1px solid #2a3039; border-radius: 10px; color: #8c97a5; background: rgba(17,19,24,.8); font-size: 10px; font-weight: 700; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.ks-download-filters button svg { width: 13px; height: 13px; stroke-width: 2.4; }
.ks-download-filters button:hover, .ks-download-filters button.is-active, .ks-download-sorts button:hover, .ks-download-sorts button.is-active { border-color: rgba(53,196,255,.36); color: #6ddcff; background: rgba(53,196,255,.1); }
.ks-download-sorts { justify-content: flex-end; white-space: nowrap; }
.ks-download-sorts span { color: #687382; font-size: 10px; font-weight: 700; }
.ks-download-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ks-download-card { min-height: 116px; padding: 14px; }
.ks-download-media { z-index: 1; display: grid; flex: 0 0 56px; place-items: center; width: 56px; height: 56px; overflow: hidden; border: 1px solid rgba(53,196,255,.2); border-radius: 15px; color: #67ddff; background: rgba(53,196,255,.12); }
.ks-download-media img { width: 100%; height: 100%; object-fit: cover; }
.ks-download-media svg { width: 24px; height: 24px; stroke-width: 2.45; }
.ks-download-content { align-content: center; gap: 5px !important; }
.ks-download-content strong { color: #f5f8fb; font-size: 14px; font-weight: 800; line-height: 1.25; }
.ks-download-content small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ks-download-badge { display: inline-flex; align-items: center; width: fit-content; min-height: 19px; padding: 0 7px; border-radius: 999px; font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .01em; }
.ks-download-badge.is-free { color: #6ce6a3; background: rgba(55,211,130,.12); }
.ks-download-badge.is-vip { color: #f5c76a; background: rgba(245,190,72,.13); }
.ks-download-action { z-index: 1; display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; margin-left: auto; border: 1px solid #303743; border-radius: 9px; color: #8090a1; background: rgba(255,255,255,.03); }
.ks-download-action svg { width: 14px; height: 14px; stroke-width: 2.5; }
.ks-download-card.is-locked { opacity: .86; }
.ks-download-card.is-locked .ks-download-action { color: #f4c56d; border-color: rgba(245,190,72,.25); }
.ks-download-empty { display: grid; justify-items: center; gap: 7px; min-height: 180px; padding: 42px 20px; border: 1px dashed #303743; border-radius: 18px; color: #778394; text-align: center; }
.ks-download-empty svg { width: 36px; height: 36px; color: #5b7180; stroke-width: 2.3; }
.ks-download-empty strong { color: #e8eef5; font-size: 15px; }
.ks-download-empty span { font-size: 12px; }

.ks-api-hero { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; padding: 24px; border: 1px solid rgba(53,196,255,.2); border-radius: 20px; background: linear-gradient(135deg, rgba(53,196,255,.11), rgba(53,196,255,.025) 65%, rgba(149,102,255,.08)); }
.ks-api-hero-icon { display: grid; flex: 0 0 50px; place-items: center; width: 50px; height: 50px; border: 1px solid rgba(53,196,255,.28); border-radius: 15px; color: #62d9ff; background: rgba(53,196,255,.13); }
.ks-api-hero-icon svg { width: 25px; height: 25px; stroke-width: 2.25; }
.ks-api-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ks-api-title-row h2 { margin: 0; color: #f3f7fb; font-size: clamp(20px, 3vw, 27px); font-weight: 800; }
.ks-api-title-row p, .ks-api-hero p { max-width: 790px; margin: 9px 0 0; color: #8d99a8; font-size: 13px; line-height: 1.6; }
.ks-api-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid rgba(245,190,72,.25); border-radius: 999px; color: #efc16b; background: rgba(245,190,72,.08); font-size: 10px; font-weight: 800; }
.ks-api-status svg { width: 13px; height: 13px; stroke-width: 2.25; }
.ks-api-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.ks-api-pills span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #2b3440; border-radius: 999px; color: #9ba8b6; background: rgba(9,12,16,.34); font-size: 10px; font-weight: 700; }
.ks-api-pills svg { width: 13px; height: 13px; color: #6cdcff; stroke-width: 2.35; }
.ks-api-layout { display: grid; grid-template-columns: 265px minmax(0, 1fr); min-height: 475px; overflow: hidden; border: 1px solid #252c36; border-radius: 20px; background: rgba(13,15,20,.82); }
.ks-api-nav { padding: 19px 11px; border-right: 1px solid #252c36; }
.ks-api-eyebrow { display: block; margin: 0 8px 10px; color: #6e7a89; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.ks-api-nav-item { display: flex; align-items: center; width: 100%; gap: 10px; min-height: 42px; padding: 0 11px; border: 0; border-radius: 11px; color: #a3adb9; background: transparent; text-align: left; font-size: 12px; font-weight: 700; cursor: pointer; transition: color .2s, background .2s; }
.ks-api-nav-item svg { width: 16px; height: 16px; color: #8996a6; stroke-width: 2.35; }
.ks-api-nav-item:hover, .ks-api-nav-item.is-active { color: #63d8ff; background: rgba(53,196,255,.12); }
.ks-api-nav-item.is-active svg { color: #63d8ff; }
.ks-api-method { display: inline-flex; align-items: center; margin-left: auto; padding: 3px 6px; border-radius: 6px; font-size: 8px; letter-spacing: .02em; }
.ks-method-get { color: #60dda0; background: rgba(64,211,137,.14); }.ks-method-post { color: #64caff; background: rgba(53,196,255,.14); }.ks-method-auth,.ks-method-info { color: #f3c96e; background: rgba(245,190,72,.13); }
.ks-api-panels { padding: 26px 28px; }
.ks-api-panel { display: none; max-width: 720px; animation: ksApiFade .22s ease; }.ks-api-panel.is-active { display: block; } @keyframes ksApiFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ks-api-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid #29313b; }
.ks-api-panel-heading .ks-api-eyebrow { margin: 0 0 6px; }.ks-api-panel-heading h3 { margin: 0; color: #f4f7fb; font-size: 21px; font-weight: 800; }.ks-api-panel-heading code { color: #6bdcff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; white-space: nowrap; }
.ks-api-panel > p { margin: 18px 0; color: #929eac; font-size: 13px; line-height: 1.65; }
.ks-api-code { overflow: hidden; border: 1px solid #2a333e; border-radius: 13px; background: #0a0d12; }.ks-api-code > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; border-bottom: 1px solid #252e38; color: #7f8c9c; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }.ks-api-code button { display: inline-flex; align-items: center; gap: 5px; border: 0; color: #62d9ff; background: none; font-size: 10px; font-weight: 800; cursor: pointer; text-transform: none; letter-spacing: 0; }.ks-api-code button svg { width: 13px; height: 13px; stroke-width: 2.35; }.ks-api-code button.is-copied { color: #65e1a0; }.ks-api-code > code { display: block; overflow-x: auto; padding: 15px; color: #c1e9f6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.ks-api-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 12px 13px; border: 1px solid rgba(53,196,255,.16); border-radius: 12px; color: #8f9eac; background: rgba(53,196,255,.06); font-size: 11px; line-height: 1.5; }.ks-api-note svg { flex: 0 0 15px; width: 15px; color: #61d7ff; stroke-width: 2.3; }
.ks-api-coming { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 17px 19px; border: 1px solid rgba(245,190,72,.2); border-radius: 15px; background: rgba(245,190,72,.05); }.ks-api-coming-icon { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #f2c36b; background: rgba(245,190,72,.12); }.ks-api-coming-icon svg { width: 19px; height: 19px; stroke-width: 2.3; }.ks-api-coming strong { color: #f2f5f8; font-size: 14px; }.ks-api-coming p { margin: 4px 0 0; color: #8e99a7; font-size: 12px; line-height: 1.55; }

/* Consistent stronger icon/heading contrast requested for the utility pages. */
.ks-info-page svg, .ks-info-page .ks-download-icon svg { stroke-width: 2.35; }
.ks-info-page .ks-info-heading h1, .ks-info-page .ks-info-card h2, .ks-info-page .ks-download-card strong, .ks-info-page .ks-api-panel-heading h3 { font-weight: 800; }
body.theme1-body[data-theme="light"] .ks-download-toolbar { border-color: #dce5ef; }
body.theme1-body[data-theme="light"] .ks-download-search { border-color: #dce5ef; background: #fff; }.theme1-body[data-theme="light"] .ks-download-search input { color: #172033; }
body.theme1-body[data-theme="light"] .ks-download-filters button, body.theme1-body[data-theme="light"] .ks-download-sorts button { border-color: #dce5ef; color: #69788b; background: #fff; }.theme1-body[data-theme="light"] .ks-download-filters button.is-active, body.theme1-body[data-theme="light"] .ks-download-filters button:hover, body.theme1-body[data-theme="light"] .ks-download-sorts button.is-active { border-color: #93d9f2; color: #079ed6; background: #effaff; }
body.theme1-body[data-theme="light"] .ks-download-card { min-height: 130px; border-color: #dce5ef; color: #172033; background: #fff; box-shadow: 0 11px 26px rgba(35,61,91,.06); }
body.theme1-body[data-theme="light"] .ks-download-content strong { color: #172033; }.theme1-body[data-theme="light"] .ks-download-content small { color: #738196; }.theme1-body[data-theme="light"] .ks-download-media { border-color: #bfeaf9; background: #eaf9fe; }.theme1-body[data-theme="light"] .ks-download-action { border-color: #dce5ef; color: #678097; background: #fbfdff; }.theme1-body[data-theme="light"] .ks-download-empty { border-color: #cddce8; }.theme1-body[data-theme="light"] .ks-download-empty strong { color: #172033; }
body.theme1-body[data-theme="light"] .ks-api-hero, body.theme1-body[data-theme="light"] .ks-api-layout { border-color: #cfe7f2; background: #fff; box-shadow: 0 12px 28px rgba(35,61,91,.06); }.theme1-body[data-theme="light"] .ks-api-title-row h2, .theme1-body[data-theme="light"] .ks-api-panel-heading h3, .theme1-body[data-theme="light"] .ks-api-coming strong { color: #172033; }.theme1-body[data-theme="light"] .ks-api-hero p, .theme1-body[data-theme="light"] .ks-api-panel > p, .theme1-body[data-theme="light"] .ks-api-coming p { color: #687587; }.theme1-body[data-theme="light"] .ks-api-nav { border-color: #e0e8ef; }.theme1-body[data-theme="light"] .ks-api-nav-item { color: #65748a; }.theme1-body[data-theme="light"] .ks-api-nav-item.is-active { color: #079ed6; background: #eaf8fd; }.theme1-body[data-theme="light"] .ks-api-panel-heading { border-color: #e0e8ef; }.theme1-body[data-theme="light"] .ks-api-code { border-color: #d8e4ec; background: #f8fbfd; }.theme1-body[data-theme="light"] .ks-api-code > div { border-color: #e1eaf0; }.theme1-body[data-theme="light"] .ks-api-code > code { color: #1e6078; }.theme1-body[data-theme="light"] .ks-api-coming { border-color: #f2db9f; background: #fffaf0; }
@media (max-width: 980px) { .ks-download-toolbar { grid-template-columns: 1fr; }.ks-download-sorts { justify-content: flex-start; }.ks-api-layout { grid-template-columns: 1fr; }.ks-api-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; border-right: 0; border-bottom: 1px solid #252c36; }.ks-api-eyebrow { grid-column: 1 / -1; }.ks-api-panels { padding: 22px; } }
@media (max-width: 560px) { .ks-api-hero { padding: 17px; gap: 11px; }.ks-api-hero-icon { flex-basis: 42px; width: 42px; height: 42px; }.ks-api-pills span { flex: 1 1 45%; justify-content: center; }.ks-api-nav { grid-template-columns: 1fr; }.ks-api-panel-heading { align-items: flex-start; flex-direction: column; gap: 8px; }.ks-api-panel-heading code { white-space: normal; word-break: break-word; }.ks-api-panels { padding: 18px 15px; }.ks-api-coming { align-items: flex-start; } }

/* Final heading contrast pass: keep the product section hierarchy crisp in light mode. */
body.theme1-body[data-theme="light"] .ks-ref-section-heading .ks-ref-eyebrow,
body.theme1-body[data-theme="light"] .ks-ref-content-card .ks-ref-eyebrow,
body.theme1-body[data-theme="light"] .ks-ref-reviews-section .ks-ref-eyebrow {
    color: #079ed6 !important;
    font-weight: 700 !important;
    font-variation-settings: 'wght' 700;
    text-shadow: 0 0 .01px currentColor;
}
body.theme1-body[data-theme="light"] .ks-ref-section-heading h2,
body.theme1-body[data-theme="light"] .ks-ref-reviews-section .ks-review-title-group h2,
body.theme1-body[data-theme="light"] .ks-review-title-group h2 {
    color: #101722 !important;
    font-weight: 700 !important;
    font-variation-settings: 'wght' 700;
    text-shadow: 0 0 .01px currentColor;
}
body.theme1-body[data-theme="light"] .ks-ref-reviews-section .ks-review-title-group h2 span,
body.theme1-body[data-theme="light"] .ks-review-title-group h2 span {
    color: #616d7b !important;
    font-weight: 700 !important;
}
body.theme1-body[data-theme="light"] .ks-ref-spec-card small,
body.theme1-body[data-theme="light"] .ks-ref-step strong,
body.theme1-body[data-theme="light"] .ks-ref-content-card .ks-ref-description-copy,
body.theme1-body[data-theme="light"] .ks-ref-reviews-section .ks-review-subtitle {
    font-weight: 700;
}

/* High-contrast section headings: match the stronger Keystore hierarchy. */
.ks-ref-eyebrow {
    color: #079ed6;
    font-weight: 700;
    letter-spacing: .16em;
    text-shadow: 0 0 .01px currentColor;
}
.ks-ref-section-heading h2,
.ks-review-title-group h2 {
    color: #101722;
    font-weight: 700;
    text-shadow: 0 0 .01px currentColor;
}
.ks-review-title-group h2 span {
    color: #616d7b;
    font-weight: 700;
}
.ks-ref-section-heading > .ks-ref-heading-icon,
.ks-review-title-icon svg {
    stroke-width: 2.65;
}
.ks-ref-spec-card small,
.ks-ref-step strong,
.ks-ref-spec-card strong {
    font-weight: 700;
}
body.theme1-body:not([data-theme="light"]) .ks-ref-section-heading h2,
body.theme1-body:not([data-theme="light"]) .ks-review-title-group h2 {
    color: #f7fafc;
}
body.theme1-body:not([data-theme="light"]) .ks-ref-eyebrow {
    color: #69d9ff;
}

/* Final light-theme override: the original page uses a more specific selector. */
body.theme1-body[data-theme="light"] .ks-ref-eyebrow {
    color: #079ed6;
    font-weight: 700;
    letter-spacing: .16em;
    text-shadow: 0 0 .01px currentColor;
}
body.theme1-body[data-theme="light"] .ks-ref-section-heading h2,
body.theme1-body[data-theme="light"] .ks-review-title-group h2 {
    color: #101722;
    font-weight: 700;
    font-variation-settings: 'wght' 700;
    text-shadow: 0 0 .01px currentColor;
}
body.theme1-body[data-theme="light"] .ks-review-title-group h2 span {
    color: #616d7b;
    font-weight: 700;
}

/* Keystore-style customer reviews: bright, structured and icon-forward. */
.ks-ref-reviews-v2 {
    overflow: hidden;
}
.ks-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e4ebf2;
}
.ks-review-title-line {
    display: flex;
    align-items: center;
    gap: 13px;
}
.ks-review-title-icon {
    display: grid;
    flex: 0 0 46px;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid #ffdda0;
    border-radius: 15px;
    color: #ffae00;
    background: #fff8e9;
}
.ks-review-title-icon svg { width: 23px; height: 23px; stroke-width: 2.45; }
.ks-review-title-group h2 {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 0;
    color: #141b27;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -.025em;
}
.ks-review-title-group h2 span { color: #7a8491; font-size: 14px; font-weight: 700; }
.ks-review-title-group p { margin: 5px 0 0; color: #808894; font-size: 12px; }
.ks-review-trust-badges { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.ks-review-trust-badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border: 1px solid #e7ebef;
    border-radius: 999px;
    color: #818993;
    background: #fbfcfd;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.ks-review-trust-badges span.is-verified { border-color: #9ce5cb; color: #00a77b; background: #eafff7; }
.ks-review-trust-badges svg { width: 14px; height: 14px; color: #00b982; stroke-width: 2.35; }
.ks-review-summary-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; }
.ks-review-score-card {
    position: relative;
    overflow: hidden;
    min-height: 270px;
    padding: 24px 24px 0;
    border: 1px solid #ffd58f;
    border-radius: 19px;
    background: linear-gradient(135deg, #fffaf0 0%, #fff 46%, #fff5e6 100%);
    box-shadow: 0 10px 24px rgba(248,178,41,.08);
}
.ks-review-score-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: '';
    background: linear-gradient(90deg, #ffbd00, #ff9200);
}
.ks-review-score-card::after {
    position: absolute;
    right: -32px;
    bottom: -47px;
    width: 160px;
    height: 160px;
    border: 18px solid rgba(255,179,0,.08);
    border-radius: 50%;
    content: '';
    pointer-events: none;
}
.ks-review-score-body { position: relative; z-index: 1; display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 20px; min-height: 181px; }
.ks-review-score-main { display: grid; align-content: center; justify-items: center; gap: 7px; padding-right: 20px; border-right: 1px solid #f1e4d0; text-align: center; }
.ks-review-score-main strong { color: #ffbe00; font-size: 54px; font-weight: 850; line-height: .95; letter-spacing: -.06em; }
.ks-review-stars { display: inline-flex; gap: 2px; color: #ffb500; }
.ks-review-stars svg { width: 15px; height: 15px; fill: currentColor; stroke-width: 2.1; }
.ks-review-score-main small { color: #7d8085; font-size: 11px; font-weight: 600; }
.ks-review-distribution { display: grid; align-content: center; gap: 12px; min-width: 0; }
.ks-review-distribution-row { display: grid; grid-template-columns: 23px minmax(0, 1fr) 20px; align-items: center; gap: 8px; color: #252c35; font-size: 11px; font-weight: 700; }
.ks-review-distribution-row > span:first-child { display: inline-flex; align-items: center; gap: 2px; }
.ks-review-distribution-row > span:first-child svg { width: 12px; height: 12px; color: #ffb500; fill: currentColor; stroke-width: 2.25; }
.ks-review-distribution-row em { color: #77818d; font-size: 10px; font-style: normal; text-align: right; }
.ks-review-progress { display: block; height: 10px; overflow: hidden; border-radius: 999px; background: rgba(223,218,210,.52); }
.ks-review-progress b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffbc00, #ffd96d); }
.ks-review-score-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 65px; border-top: 1px solid #efdfc7; color: #7d858d; font-size: 11px; }
.ks-review-score-foot span, .ks-review-score-foot strong { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ks-review-score-foot svg { width: 15px; height: 15px; stroke-width: 2.35; }
.ks-review-score-foot span svg { color: #42c9f0; fill: currentColor; }
.ks-review-score-foot strong { color: #00a978; }
.ks-review-score-foot strong svg { color: #00ae7e; fill: currentColor; }
.ks-review-login-card {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-height: 270px;
    padding: 28px 34px;
    border: 1px solid #e1e7ed;
    border-radius: 19px;
    background: #fff;
    text-align: center;
    box-shadow: 0 8px 20px rgba(34,54,77,.035);
}
.ks-review-login-icon { display: grid; place-items: center; width: 55px; height: 55px; margin-bottom: 13px; border: 1px solid #8cdefe; border-radius: 17px; color: #16ace6; background: #dff6ff; }
.ks-review-login-icon svg { width: 27px; height: 27px; stroke-width: 2.25; }
.ks-review-login-card h3 { margin: 0; color: #171c24; font-size: 17px; line-height: 1.35; }
.ks-review-login-card p { max-width: 380px; margin: 10px 0 17px; color: #7c828a; font-size: 12px; line-height: 1.65; }
.ks-review-login-card a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 17px; border-radius: 999px; color: #fff; background: #16a9e3; box-shadow: 0 8px 16px rgba(22,169,227,.20); font-size: 12px; font-weight: 800; text-decoration: none; }
.ks-review-login-card a:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ks-review-login-card a svg { width: 16px; height: 16px; stroke-width: 2.4; }
.ks-review-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #e6ebef; }
.ks-review-filter-group, .ks-review-sort-group, .ks-review-sort-options { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ks-review-filter-group button, .ks-review-sort-options button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 35px; padding: 0 13px; border: 0; border-radius: 999px; color: #838a92; background: #f7f8fa; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.ks-review-filter-group button.is-active { color: #fff; background: #13a8e4; box-shadow: 0 6px 12px rgba(19,168,228,.18); }
.ks-review-filter-group button svg { width: 12px; height: 12px; color: #ffb400; fill: currentColor; stroke-width: 2.2; }
.ks-review-filter-group button.is-active svg { color: #fff; }
.ks-review-sort-group { justify-content: flex-end; color: #777f87; font-size: 11px; white-space: nowrap; }
.ks-review-sort-options { gap: 0; padding: 3px; border: 1px solid #e4e8ed; border-radius: 999px; background: #fafbfc; }
.ks-review-sort-options button { min-height: 29px; padding: 0 12px; background: transparent; font-weight: 600; }
.ks-review-sort-options button.is-active { color: #19202b; background: #fff; box-shadow: 0 2px 7px rgba(23,38,55,.08); }
.ks-review-empty-list { display: grid; justify-items: center; gap: 7px; min-height: 130px; margin-top: 25px; padding: 24px; border: 1px dashed #dbe3ea; border-radius: 15px; color: #7d8792; text-align: center; }
.ks-review-empty-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: #17a9e5; background: #e4f7ff; }
.ks-review-empty-icon svg { width: 20px; height: 20px; stroke-width: 2.25; }
.ks-review-empty-list strong { color: #313943; font-size: 13px; }
.ks-review-empty-list p { margin: 0; font-size: 11px; }

/* Dark mode keeps the same hierarchy while respecting the existing theme toggle. */
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-head { border-color: #2b3139; }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-title-group h2 { color: #f4f7fa; }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-title-group h2 span,
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-title-group p { color: #8994a2; }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-title-icon { border-color: rgba(255,190,0,.26); background: rgba(255,190,0,.10); }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-trust-badges span { border-color: #323a44; color: #9aa5b2; background: #171b21; }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-trust-badges span.is-verified { border-color: rgba(0,185,130,.35); color: #63e0b2; background: rgba(0,185,130,.10); }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-score-card { border-color: #624c22; background: linear-gradient(135deg, #241d12, #17191d 56%, #242015); }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-score-main { border-color: #443724; }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-distribution-row { color: #d9e0e7; }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-progress { background: #37312a; }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-score-foot { border-color: #443724; color: #98a2ae; }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-login-card { border-color: #2c343e; background: #15191f; }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-login-card h3 { color: #f2f5f7; }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-login-card p { color: #909aa7; }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-toolbar { border-color: #2b3139; }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-filter-group button,
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-sort-options { background: #171b21; }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-filter-group button { color: #a4aeba; }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-sort-options { border-color: #323a44; }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-sort-options button.is-active { color: #eef3f6; background: #242a32; }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-empty-list { border-color: #34404d; }
body.theme1-body:not([data-theme="light"]) .ks-ref-reviews-v2 .ks-review-empty-list strong { color: #e6edf2; }
.ks-review-form { display: grid; gap: 10px; width: min(100%, 390px); text-align: left; }
.ks-review-form label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #606c78; font-size: 11px; font-weight: 700; }
.ks-review-form select, .ks-review-form textarea { width: 100%; border: 1px solid #dce5eb; border-radius: 10px; color: #29333e; background: #fbfdff; font: inherit; font-size: 12px; outline: none; }
.ks-review-form select { width: auto; padding: 8px 10px; }
.ks-review-form textarea { padding: 10px 11px; resize: vertical; }
.ks-review-form select:focus, .ks-review-form textarea:focus { border-color: #17a9e5; box-shadow: 0 0 0 3px rgba(23,169,229,.10); }
.ks-review-form button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; border: 0; border-radius: 10px; color: #fff; background: #16a9e3; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.ks-review-form button svg { width: 15px; height: 15px; }
.ks-review-list { display: grid; gap: 10px; margin-top: 25px; }
.ks-review-item { padding: 16px 18px; border: 1px solid #e1e8ee; border-radius: 15px; background: #fff; }
.ks-review-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #202832; font-size: 13px; }
.ks-review-item-head span { color: #8a949e; font-size: 10px; font-weight: 600; }
.ks-review-item-stars { display: flex; gap: 2px; margin: 7px 0; color: #d9e0e5; }
.ks-review-item-stars svg { width: 14px; height: 14px; }
.ks-review-item-stars svg.is-filled { color: #ffb500; fill: currentColor; }
.ks-review-item p { margin: 0; color: #697581; font-size: 12px; line-height: 1.65; white-space: normal; }
body.theme1-body:not([data-theme="light"]) .ks-review-form label { color: #a5b0bd; }
body.theme1-body:not([data-theme="light"]) .ks-review-form select,
body.theme1-body:not([data-theme="light"]) .ks-review-form textarea { border-color: #35404c; color: #e8eef4; background: #10151c; }
body.theme1-body:not([data-theme="light"]) .ks-review-item { border-color: #303a46; background: #151a21; }
body.theme1-body:not([data-theme="light"]) .ks-review-item-head { color: #f1f5f8; }
body.theme1-body:not([data-theme="light"]) .ks-review-item p { color: #a0abb7; }

@media (max-width: 900px) {
    .ks-review-head, .ks-review-toolbar { align-items: flex-start; flex-direction: column; }
    .ks-review-trust-badges { justify-content: flex-start; }
    .ks-review-summary-grid { grid-template-columns: 1fr; }
    .ks-review-sort-group { justify-content: flex-start; }
}
@media (max-width: 560px) {
    .ks-review-title-group h2 { font-size: 17px; }
    .ks-review-title-group p { max-width: 260px; line-height: 1.45; }
    .ks-review-score-card { padding: 20px 15px 0; }
    .ks-review-score-body { grid-template-columns: 98px minmax(0, 1fr); gap: 12px; }
    .ks-review-score-main { padding-right: 12px; }
    .ks-review-score-main strong { font-size: 43px; }
    .ks-review-score-foot { font-size: 9px; }
    .ks-review-login-card { padding-inline: 20px; }
    .ks-review-filter-group { gap: 6px; }
    .ks-review-filter-group button { padding-inline: 10px; }
}

/* Stronger light-theme icon contrast: keep the same cyan identity while improving legibility. */
body.theme1-body[data-theme="light"] .theme1-utility-link > svg,
body.theme1-body[data-theme="light"] .theme1-utility-hours > svg {
    color: #078fc9;
    background: #d9f3fc;
    stroke-width: 2.35;
}
body.theme1-body[data-theme="light"] .theme1-top-action svg,
body.theme1-body[data-theme="light"] .theme1-icon-button svg {
    color: #486078;
    stroke-width: 2.15;
}
body.theme1-body[data-theme="light"] .theme1-top-action:hover svg,
body.theme1-body[data-theme="light"] .theme1-icon-button:hover svg { color: #087eae; }
body.theme1-body[data-theme="light"] .theme1-main-nav a > svg:first-child {
    color: #078fca;
    stroke-width: 2.15;
}
body.theme1-body[data-theme="light"] .theme1-main-nav a .theme1-nav-chevron {
    color: #51657a;
    stroke-width: 2.05;
}
body.theme1-body[data-theme="light"] .theme1-main-nav a:hover > svg:first-child,
body.theme1-body[data-theme="light"] .theme1-main-nav a.active > svg:first-child { color: #006f9f; }
body.theme1-body[data-theme="light"] .ks-ref-breadcrumb svg { color: #546b82; stroke-width: 2.1; }
body.theme1-body[data-theme="light"] .ks-ref-breadcrumb span,
body.theme1-body[data-theme="light"] .ks-ref-eyebrow,
body.theme1-body[data-theme="light"] .ks-ref-price-intro strong,
body.theme1-body[data-theme="light"] .ks-ref-section-chip { color: #078fc9; }
body.theme1-body[data-theme="light"] .ks-ref-live-dot { color: #0aa873; }
body.theme1-body[data-theme="light"] .ks-ref-package-check { border-color: #6d8397; }
body.theme1-body[data-theme="light"] .ks-ref-package-option.is-selected {
    border-color: #079ed4;
    box-shadow: 0 0 0 1px rgba(7,158,212,.18), 0 8px 22px rgba(16,160,204,.10);
}
body.theme1-body[data-theme="light"] .ks-ref-package-option.is-selected .ks-ref-package-check { background: #08a5dc; }
body.theme1-body[data-theme="light"] .ks-ref-package-price b { color: #078fca; }
body.theme1-body[data-theme="light"] .ks-ref-quantity-row button:hover,
body.theme1-body[data-theme="light"] .ks-ref-quick-qty button:hover { color: #007eaf; }
body.theme1-body[data-theme="light"] .ks-ref-coupon-input > svg,
body.theme1-body[data-theme="light"] .ks-ref-balance-note > svg,
body.theme1-body[data-theme="light"] .ks-ref-buy-trust svg { color: #079bce; }
body.theme1-body[data-theme="light"] .ks-ref-buy-button {
    color: #ffffff;
    background: linear-gradient(135deg, #079ed4, #7564e8);
    box-shadow: 0 11px 24px rgba(28,139,218,.24);
}
body.theme1-body[data-theme="light"] .ks-ref-spec-icon { color: #078fca; background: #e1f6fc; }
body.theme1-body[data-theme="light"] .ks-ref-spec-icon.is-purple { color: #7655d6; background: #f0eaff; }
body.theme1-body[data-theme="light"] .ks-ref-spec-icon.is-green { color: #079b69; background: #e4f9f0; }
body.theme1-body[data-theme="light"] .ks-ref-spec-icon.is-gold { color: #b17700; background: #fff4d7; }

/* Desktop header chrome: two separate rounded bars like the reference site. */
@media (min-width: 901px) {
    body.theme1-body[data-theme="light"] .theme1-header {
        top: 0;
        left: 0;
        width: 100vw;
        transform: none;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    body.theme1-body[data-theme="light"] .theme1-utility-bar {
        min-height: 58px;
        height: 58px;
        padding-inline: 24px;
        border: 1px solid #dce7f0;
        border-radius: 14px;
        background: rgba(255,255,255,.96);
        box-shadow: 0 8px 24px rgba(34,77,111,.07);
    }
    body.theme1-body[data-theme="light"] .theme1-header-inner {
        min-height: 64px;
        height: 64px;
        margin-top: 12px;
        padding-inline: 24px;
        border: 1px solid #dce7f0;
        border-radius: 14px;
        background: rgba(255,255,255,.96);
        box-shadow: 0 12px 30px rgba(34,77,111,.08);
    }
    .theme1-music-reopen { right: 94px; bottom: 25px; }
}

/* The reference header uses the blue emblem; crop it from the supplied brand lockup. */
.theme1-brand-symbol { display: block; flex: 0 0 58px; width: 58px; height: 48px; overflow: hidden; }
.theme1-brand-symbol .theme1-brand-image { display: block; width: 166px; max-width: none; height: 48px; object-fit: contain; object-position: left center; }
body.theme1-body[data-theme="light"] .theme1-brand-symbol { flex-basis: 58px; width: 58px; height: 48px; }
body.theme1-body[data-theme="light"] .theme1-brand-symbol .theme1-brand-image { display: block; width: 166px; max-width: none; height: 48px; }
@media (max-width: 900px) {
    .theme1-brand-symbol,
    body.theme1-body[data-theme="light"] .theme1-brand-symbol { flex-basis: 48px; width: 48px; height: 40px; }
    .theme1-brand-symbol .theme1-brand-image,
    body.theme1-body[data-theme="light"] .theme1-brand-symbol .theme1-brand-image { width: 138px; height: 40px; }
}

/* Inner pages: keep the reference light theme readable instead of leaving
   Tailwind's dark utility text on a white surface. */
body.theme1-body[data-theme="light"] .ks-library-intro h1,
body.theme1-body[data-theme="light"] .ks-section-title,
body.theme1-body[data-theme="light"] .ks-info-heading h1 { color: #172033; }
body.theme1-body[data-theme="light"] .ks-library-intro p,
body.theme1-body[data-theme="light"] .ks-section-subtitle,
body.theme1-body[data-theme="light"] .ks-breadcrumb,
body.theme1-body[data-theme="light"] .ks-breadcrumb a,
body.theme1-body[data-theme="light"] .ks-sort-row,
body.theme1-body[data-theme="light"] .ks-sort-row a { color: #687587; }
body.theme1-body[data-theme="light"] .ks-library-search { border-color: #d8e2ed; background: #fff; box-shadow: 0 8px 22px rgba(35,61,91,.05); }
body.theme1-body[data-theme="light"] .ks-library-search input { color: #172033; }
body.theme1-body[data-theme="light"] .ks-filter-bar { border-color: #dce5ef; }
body.theme1-body[data-theme="light"] .ks-product-price { color: #0b83bf; }
body.theme1-body[data-theme="light"] .ks-product-status { color: #126b45; background: #dff8ea; }
body.theme1-body[data-theme="light"] .ks-product-detail .ks-detail-breadcrumb a { color: #5e718a; }
body.theme1-body[data-theme="light"] .ks-browser-frame { border-color: #d8e2ed; background: #fff; box-shadow: 0 18px 45px rgba(35,61,91,.12); }
body.theme1-body[data-theme="light"] .ks-browser-bar { border-color: #e2e8f0; background: #f8fafc; }
body.theme1-body[data-theme="light"] .ks-browser-url { border-color: #dce5ef; color: #687587; background: #fff; }
body.theme1-body[data-theme="light"] .ks-product-detail #packages-grid .text-white { color: #172033 !important; }
body.theme1-body[data-theme="light"] .ks-product-detail #packages-grid .text-gray-400,
body.theme1-body[data-theme="light"] .ks-product-detail #packages-grid .text-gray-500 { color: #687587 !important; }
body.theme1-body[data-theme="light"] .ks-product-detail #packages-grid .bg-dark-card { background: linear-gradient(145deg, #fff, #f7f9fc) !important; }
body.theme1-body[data-theme="light"] .ks-product-detail #packages-grid .bg-dark-surface { background: #f1f5f9 !important; }
body.theme1-body[data-theme="light"] .theme1-main > section:not(.ks-product-detail) .text-white { color: #172033 !important; }
body.theme1-body[data-theme="light"] .theme1-main > section:not(.ks-product-detail) .text-gray-400 { color: #526177 !important; }
body.theme1-body[data-theme="light"] .theme1-main > section:not(.ks-product-detail) .text-gray-500 { color: #687587 !important; }
body.theme1-body[data-theme="light"] .theme1-main > section:not(.ks-product-detail) .text-gray-600 { color: #7a899c !important; }
body.theme1-body[data-theme="light"] .theme1-main > section:not(.ks-product-detail) .btn-primary,
body.theme1-body[data-theme="light"] .theme1-main > section:not(.ks-product-detail) .btn-secondary { color: #fff !important; }
body.theme1-body[data-theme="light"] .theme1-main > section:not(.ks-product-detail) input,
body.theme1-body[data-theme="light"] .theme1-main > section:not(.ks-product-detail) textarea,
body.theme1-body[data-theme="light"] .theme1-main > section:not(.ks-product-detail) select { color: #172033; }

/* Public utility pages share the same card language as the reference footer
   and mobile surfaces. */
.ks-info-page { padding: 16px 0 28px; }
.ks-info-hero { margin-bottom: 25px; }
.ks-info-heading { display: flex; align-items: flex-start; gap: 15px; }
.ks-info-heading h1 { margin: 0; color: #fafafa; font-size: clamp(27px, 4vw, 39px); line-height: 1.08; letter-spacing: -.025em; }
.ks-info-heading p { max-width: 700px; margin: 9px 0 0; color: #8a909a; font-size: 14px; line-height: 1.55; }
.ks-info-icon { display: grid; flex: 0 0 52px; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(53,196,255,.28); border-radius: 16px; color: #63d9ff; background: rgba(53,196,255,.11); }
.ks-info-icon svg { width: 24px; height: 24px; }
.ks-info-grid { margin-top: 0; }
.ks-info-leaderboard { max-width: 860px; }
.ks-info-support { margin-top: 0; }
.ks-info-card { display: flex; align-items: flex-start; gap: 14px; min-height: 128px; padding: 20px; border: 1px solid #242831; border-radius: 18px; color: #eef2f7; background: linear-gradient(145deg, rgba(17,19,24,.98), rgba(10,12,16,.96)); }
.ks-info-copy { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.ks-info-card-icon { display: grid; flex: 0 0 39px; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: #70ddff; background: rgba(53,196,255,.1); }
.ks-info-card-icon svg { width: 19px; height: 19px; }
.ks-info-card h2 { margin: 0 0 5px; color: #f3f6fa; font-size: 16px; }
.ks-info-card p { margin: 0; color: #858e9b; font-size: 13px; line-height: 1.55; }
.ks-info-callout { display: flex; align-items: flex-start; gap: 10px; max-width: 900px; margin-top: 17px; padding: 14px 16px; border: 1px solid rgba(53,196,255,.18); border-radius: 14px; color: #98a4b3; background: rgba(53,196,255,.06); font-size: 13px; line-height: 1.5; }
.ks-info-callout svg { flex: 0 0 17px; color: #63d9ff; }
.ks-info-callout a { color: #57c9f5; font-weight: 700; text-decoration: none; }
.ks-support-icon img, .ks-community-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
body.theme1-body[data-theme="light"] .ks-info-heading p { color: #687587; }
body.theme1-body[data-theme="light"] .ks-info-card { border-color: #dce5ef; color: #172033; background: #fff; box-shadow: 0 12px 28px rgba(35,61,91,.06); }
body.theme1-body[data-theme="light"] .ks-info-card h2 { color: #172033; }
body.theme1-body[data-theme="light"] .ks-info-card p { color: #728096; }
body.theme1-body[data-theme="light"] .ks-info-callout { border-color: #cfe7f2; color: #5f7186; background: #f4fbfe; }

@media (max-width: 640px) {
    .ks-info-page { padding-top: 8px; padding-bottom: 78px; }
    .ks-info-copy { grid-template-columns: 1fr; }
    .ks-info-heading { gap: 11px; }
    .ks-info-icon { flex-basis: 44px; width: 44px; height: 44px; border-radius: 13px; }
}

/* Orders and wallet activity: compact dashboard language from the reference. */
.ks-orders-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.ks-orders-subtitle { max-width: 660px; margin: 8px 0 0; color: #7f8997; font-size: 13px; line-height: 1.5; }
.ks-orders-primary { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(53,196,255,.24); border-radius: 12px; color: #6ddcff; background: rgba(53,196,255,.08); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ks-orders-primary:hover { border-color: rgba(53,196,255,.5); background: rgba(53,196,255,.14); }
.ks-orders-primary svg { width: 15px; height: 15px; }
.ks-order-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ks-order-stat { display: flex; align-items: center; gap: 12px; min-height: 83px; padding: 15px; border: 1px solid #242831; border-radius: 16px; background: linear-gradient(145deg, rgba(18,20,26,.98), rgba(11,13,17,.95)); }
.ks-order-stat-icon { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 12px; }
.ks-order-stat-icon svg { width: 18px; height: 18px; }
.ks-stat-blue { color: #6edbff; background: rgba(53,196,255,.12); }
.ks-stat-green { color: #7de8aa; background: rgba(70,218,145,.12); }
.ks-stat-gold { color: #f6ca73; background: rgba(245,190,72,.12); }
.ks-order-stat > span:last-child { display: grid; gap: 4px; min-width: 0; }
.ks-order-stat small { color: #7c8796; font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.ks-order-stat strong { color: #f1f5f9; font-size: 18px; line-height: 1; }
.ks-order-stat em { color: #8994a2; font-size: 11px; font-style: normal; font-weight: 600; }
.ks-order-tabs { display: flex; gap: 4px; margin-bottom: 18px; padding: 4px; border: 1px solid #242831; border-radius: 14px; background: rgba(14,16,21,.78); }
.ks-order-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 10px; color: #818b98; font-size: 12px; font-weight: 700; text-decoration: none; }
.ks-order-tabs a[aria-selected="true"], .ks-order-tabs a:hover { color: #71dcff; background: rgba(53,196,255,.1); }
.ks-order-tabs svg { width: 15px; height: 15px; }
.ks-order-tabs span { color: inherit; font-weight: 500; }
.ks-orders-filters { margin-bottom: 18px; }
.ks-orders-empty, .ks-transaction-panel { border: 1px solid #242831; border-radius: 18px; background: linear-gradient(145deg, rgba(17,19,24,.98), rgba(10,12,16,.96)); }
.ks-orders-empty { display: grid; justify-items: center; gap: 8px; padding: 54px 24px; text-align: center; }
.ks-orders-empty > svg { width: 42px; height: 42px; margin-bottom: 3px; color: #526071; }
.ks-orders-empty h3 { margin: 0; color: #eef3f7; font-size: 17px; }
.ks-orders-empty p { max-width: 480px; margin: 0; color: #7d8794; font-size: 12px; line-height: 1.55; }
.ks-orders-empty a { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; color: #5fd5ff; font-size: 12px; font-weight: 700; text-decoration: none; }
.ks-orders-empty a svg { width: 14px; height: 14px; }
.ks-panel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 19px; border-bottom: 1px solid #242831; }
.ks-panel-toolbar h2 { margin: 0; color: #f1f5f9; font-size: 16px; }
.ks-panel-toolbar p { margin: 5px 0 0; color: #7d8794; font-size: 12px; }
.ks-toolbar-count { color: #6edbff; font-size: 11px; font-weight: 800; }
.ks-transaction-list { display: grid; }
.ks-transaction-row { display: flex; align-items: center; gap: 11px; min-height: 70px; padding: 11px 18px; border-bottom: 1px solid rgba(36,40,49,.68); }
.ks-transaction-row:last-child { border-bottom: 0; }
.ks-transaction-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 11px; }
.ks-transaction-icon svg { width: 16px; height: 16px; }
.ks-transaction-icon.is-positive { color: #7de8aa; background: rgba(70,218,145,.11); }
.ks-transaction-icon.is-pending { color: #f4c66b; background: rgba(245,190,72,.11); }
.ks-transaction-copy { display: grid; flex: 1; gap: 3px; min-width: 0; }
.ks-transaction-copy strong { overflow: hidden; color: #eaf0f5; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ks-transaction-copy small { overflow: hidden; color: #778392; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ks-transaction-amount { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 800; white-space: nowrap; }
.ks-transaction-amount.is-positive { color: #70e0a1; }
.ks-transaction-amount.is-pending { color: #f1c56b; }
body.theme1-body[data-theme="light"] .ks-order-stat, body.theme1-body[data-theme="light"] .ks-order-tabs, body.theme1-body[data-theme="light"] .ks-orders-empty, body.theme1-body[data-theme="light"] .ks-transaction-panel { border-color: #dce5ef; background: #fff; box-shadow: 0 12px 28px rgba(35,61,91,.06); }
body.theme1-body[data-theme="light"] .ks-order-stat strong, body.theme1-body[data-theme="light"] .ks-panel-toolbar h2, body.theme1-body[data-theme="light"] .ks-orders-empty h3, body.theme1-body[data-theme="light"] .ks-transaction-copy strong { color: #172033; }
body.theme1-body[data-theme="light"] .ks-orders-subtitle, body.theme1-body[data-theme="light"] .ks-order-stat small, body.theme1-body[data-theme="light"] .ks-order-stat em, body.theme1-body[data-theme="light"] .ks-panel-toolbar p, body.theme1-body[data-theme="light"] .ks-orders-empty p, body.theme1-body[data-theme="light"] .ks-transaction-copy small { color: #728096; }
body.theme1-body[data-theme="light"] .ks-order-tabs { background: #f7f9fc; }
body.theme1-body[data-theme="light"] .ks-order-tabs a { color: #77859a; }
body.theme1-body[data-theme="light"] .ks-order-tabs a[aria-selected="true"], body.theme1-body[data-theme="light"] .ks-order-tabs a:hover { color: #0b83bf; background: #eaf8fd; }
body.theme1-body[data-theme="light"] .ks-transaction-row { border-color: #e8eef4; }

@media (max-width: 720px) {
    .ks-orders-heading { align-items: flex-start; flex-direction: column; }
    .ks-orders-primary { width: 100%; justify-content: center; }
    .ks-order-stats { grid-template-columns: 1fr; }
    .ks-order-tabs { overflow-x: auto; }
    .ks-order-tabs a { flex: 0 0 auto; }
    .ks-panel-toolbar { align-items: flex-start; flex-direction: column; }
    .ks-transaction-amount { font-size: 11px; }
}

/* Product detail: Keystore-style two-column purchase experience. */
.ks-ref-product-page { padding-top: 17px; padding-bottom: 72px; }
.ks-ref-breadcrumb { margin-bottom: 17px; }
.ks-ref-product-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(340px, .82fr); align-items: start; gap: 18px; }
.ks-ref-product-main { display: grid; gap: 14px; min-width: 0; }
.ks-ref-visual-card, .ks-ref-buy-panel, .ks-ref-spec-section, .ks-ref-steps-section, .ks-ref-content-card, .ks-ref-reviews-section { border: 1px solid #242831; border-radius: 18px; background: linear-gradient(145deg, rgba(17,19,24,.98), rgba(10,12,16,.96)); box-shadow: 0 18px 42px rgba(0,0,0,.11); }
.ks-ref-visual-card { overflow: hidden; }
.ks-ref-browser-bar { height: 46px; border-bottom: 1px solid #242831; background: rgba(15,17,22,.9); }
.ks-ref-visual-media { position: relative; min-height: 420px; overflow: hidden; background: #090b0e; }
.ks-ref-hero-image { display: block; width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: center; }
.ks-ref-visual-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,10,.08) 19%, rgba(5,7,10,.18) 43%, rgba(5,7,10,.96) 100%); }
.ks-ref-visual-copy { position: absolute; right: 28px; bottom: 28px; left: 28px; z-index: 1; max-width: 720px; }
.ks-ref-badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 14px; }
.ks-ref-visual-copy h1 { margin: 0; color: #fff; font-size: clamp(25px, 4vw, 43px); line-height: 1.04; letter-spacing: -.035em; }
.ks-ref-visual-copy p { max-width: 680px; margin: 11px 0 0; color: rgba(237,243,248,.76); font-size: 13px; line-height: 1.6; }
.ks-ref-downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ks-ref-download { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; color: #eef5f9; text-decoration: none; transition: transform .2s ease, filter .2s ease; }
.ks-ref-download:hover { filter: brightness(1.12); transform: translateY(-2px); }
.ks-ref-download > svg:first-child { width: 17px; height: 17px; }
.ks-ref-download span { overflow: hidden; flex: 1; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.ks-ref-download-arrow { width: 14px; height: 14px; opacity: .7; }
.ks-ref-benefit-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ks-ref-benefit { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 11px 13px; border: 1px solid #242831; border-radius: 13px; background: rgba(15,17,22,.86); color: #a7b0bc; font-size: 11px; line-height: 1.35; }
.ks-ref-benefit svg { flex: 0 0 16px; width: 16px; height: 16px; color: #6fe2a0; }
.ks-ref-buy-panel { position: sticky; top: 78px; padding: 20px; }
.ks-ref-panel-heading, .ks-ref-section-heading, .ks-ref-label-row, .ks-ref-summary > div, .ks-ref-buy-trust, .ks-ref-rating-total, .ks-ref-review-empty { display: flex; align-items: center; }
.ks-ref-panel-heading { justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.ks-ref-eyebrow { display: block; color: #62d6fc; font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.ks-ref-panel-heading h2, .ks-ref-section-heading h2 { margin: 5px 0 0; color: #f4f7fa; font-size: 22px; line-height: 1.15; letter-spacing: -.025em; }
.ks-ref-live-dot { display: inline-flex; align-items: center; gap: 5px; color: #75e4a4; font-size: 9px; font-weight: 850; letter-spacing: .08em; white-space: nowrap; }
.ks-ref-live-dot i, .ks-detail-badge-active i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(117,228,164,.13); }
.ks-ref-price-intro { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 12px 0 16px; border-bottom: 1px solid #242831; color: #818b98; font-size: 11px; }
.ks-ref-price-intro strong { color: #79dcff; font-size: 15px; white-space: nowrap; }
.ks-ref-form-block { padding: 16px 0 0; }
.ks-ref-label-row { justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.ks-ref-label-row label { color: #e8edf2; font-size: 12px; font-weight: 750; }
.ks-ref-label-row span { color: #778391; font-size: 10px; }
.ks-ref-package-list { display: grid; gap: 8px; }
.ks-ref-package-option { position: relative; display: grid; grid-template-columns: 20px minmax(0,1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 9px; width: 100%; padding: 11px 12px; border: 1px solid #2a3039; border-radius: 12px; color: #f1f5f9; background: #11151a; text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.ks-ref-package-option:hover:not(:disabled) { border-color: rgba(73,204,246,.5); transform: translateY(-1px); }
.ks-ref-package-option.is-selected { border-color: rgba(63,207,249,.9); background: linear-gradient(135deg, rgba(25,79,96,.38), rgba(20,27,35,.98)); box-shadow: 0 0 0 1px rgba(63,207,249,.12), 0 8px 22px rgba(16,160,204,.08); }
.ks-ref-package-option.is-disabled { opacity: .46; cursor: not-allowed; }
.ks-ref-package-check { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #46515f; border-radius: 50%; color: transparent; }
.ks-ref-package-check svg { width: 11px; height: 11px; }
.ks-ref-package-option.is-selected .ks-ref-package-check { border-color: #5edcff; color: #0b171d; background: #63ddff; }
.ks-ref-package-copy { display: grid; gap: 3px; min-width: 0; }
.ks-ref-package-copy strong { overflow: hidden; color: #edf3f7; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ks-ref-package-copy small { overflow: hidden; color: #778391; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ks-ref-package-price { display: grid; justify-items: end; gap: 2px; }
.ks-ref-package-price del { color: #687382; font-size: 9px; }
.ks-ref-package-price b { color: #67d9ff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.ks-ref-package-stock { grid-column: 2 / 4; color: #6c7785; font-size: 9px; }
.ks-ref-package-option:not(.is-disabled) .ks-ref-package-stock { color: #73dda2; }
.ks-ref-quantity-row { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; height: 44px; overflow: hidden; border: 1px solid #2a3039; border-radius: 12px; background: #11151a; }
.ks-ref-quantity-row button { border: 0; color: #aeb9c4; background: transparent; font-size: 21px; cursor: pointer; }
.ks-ref-quantity-row button:hover { color: #70ddff; background: rgba(53,196,255,.08); }
.ks-ref-quantity-row input { min-width: 0; border: 0; border-right: 1px solid #242831; border-left: 1px solid #242831; color: #f5f8fa; background: transparent; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; outline: none; }
.ks-ref-quick-qty { display: flex; gap: 6px; margin-top: 7px; }
.ks-ref-quick-qty button { min-width: 38px; padding: 4px 9px; border: 1px solid #2b333e; border-radius: 7px; color: #8a96a3; background: #15191f; font-size: 10px; cursor: pointer; }
.ks-ref-quick-qty button:hover { border-color: rgba(53,196,255,.4); color: #69d9fb; }
.ks-ref-coupon-row { margin-top: 16px; }
.ks-ref-coupon-input { display: flex; align-items: center; gap: 8px; height: 42px; padding-left: 12px; border: 1px solid #2a3039; border-radius: 11px; background: #11151a; }
.ks-ref-coupon-input > svg { flex: 0 0 15px; width: 15px; height: 15px; color: #728090; }
.ks-ref-coupon-input input { min-width: 0; flex: 1; border: 0; color: #e9eff3; background: transparent; font-size: 11px; outline: none; }
.ks-ref-coupon-input button { align-self: stretch; padding: 0 11px; border: 0; border-left: 1px solid #2a3039; color: #66d9fb; background: rgba(53,196,255,.08); font-size: 10px; font-weight: 800; cursor: pointer; }
.ks-ref-coupon-msg { margin: 6px 0 0; font-size: 10px; }
.ks-ref-coupon-msg.is-hidden { display: none; }
.ks-ref-coupon-msg.is-loading { color: #a0acb8; }
.ks-ref-coupon-msg.is-success { color: #73dda2; }
.ks-ref-coupon-msg.is-error { color: #ff8c92; }
.ks-ref-summary { display: grid; gap: 8px; margin-top: 16px; padding: 13px; border: 1px solid rgba(53,196,255,.13); border-radius: 12px; background: linear-gradient(135deg, rgba(53,196,255,.055), rgba(143,87,255,.055)); }
.ks-ref-summary > div { justify-content: space-between; gap: 12px; color: #7d8997; font-size: 11px; }
.ks-ref-summary > div strong { color: #e7edf2; font-size: 11px; }
.ks-ref-summary-total { margin-top: 2px; padding-top: 10px; border-top: 1px solid #2a3039; color: #f3f7fa !important; font-weight: 800; }
.ks-ref-summary-total strong { color: #73dcff !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px !important; }
.ks-ref-balance-note { display: flex; align-items: center; gap: 7px; margin: 12px 0; color: #798593; font-size: 10px; line-height: 1.35; }
.ks-ref-balance-note > svg { flex: 0 0 15px; width: 15px; height: 15px; color: #74dfa4; }
.ks-ref-balance-note a { margin-left: auto; color: #65d8fa; font-weight: 800; text-decoration: none; white-space: nowrap; }
.ks-ref-buy-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 47px; border: 0; border-radius: 12px; color: #051118; background: linear-gradient(135deg, #50d7ff, #9b84ff); box-shadow: 0 11px 24px rgba(62,188,235,.17); font-size: 12px; font-weight: 900; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: transform .2s ease, filter .2s ease, opacity .2s ease; }
.ks-ref-buy-button:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-2px); }
.ks-ref-buy-button:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.ks-ref-buy-button svg { width: 17px; height: 17px; }
.ks-ref-buy-trust { justify-content: space-between; gap: 7px; margin-top: 14px; color: #707c8b; font-size: 9px; }
.ks-ref-buy-trust span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ks-ref-buy-trust svg { width: 12px; height: 12px; color: #74dca5; }
.ks-ref-spec-section, .ks-ref-steps-section, .ks-ref-content-card, .ks-ref-reviews-section { margin-top: 18px; padding: 21px; }
.ks-ref-section-heading { justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.ks-ref-section-heading h2 { font-size: 19px; }
.ks-ref-section-chip, .ks-ref-other-section .ks-ref-section-heading > a { display: inline-flex; align-items: center; gap: 6px; color: #73dcff; font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.ks-ref-section-chip { padding: 8px 10px; border: 1px solid rgba(53,196,255,.2); border-radius: 9px; background: rgba(53,196,255,.07); }
.ks-ref-section-chip svg, .ks-ref-other-section .ks-ref-section-heading > a svg { width: 14px; height: 14px; }
.ks-ref-spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.ks-ref-spec-card { display: flex; align-items: center; gap: 10px; min-height: 76px; padding: 12px; border: 1px solid #242b34; border-radius: 13px; background: #101419; }
.ks-ref-spec-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #70dafa; background: rgba(53,196,255,.11); }
.ks-ref-spec-icon.is-purple { color: #c3a6ff; background: rgba(150,102,255,.12); }
.ks-ref-spec-icon.is-green { color: #7be2a7; background: rgba(70,218,145,.11); }
.ks-ref-spec-icon.is-gold { color: #f6ca73; background: rgba(245,190,72,.11); }
.ks-ref-spec-icon svg { width: 16px; height: 16px; }
.ks-ref-spec-card > span:last-child { display: grid; gap: 5px; min-width: 0; }
.ks-ref-spec-card small { color: #707c8b; font-size: 9px; font-weight: 850; letter-spacing: .09em; }
.ks-ref-spec-card strong { overflow: hidden; color: #e8eef2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ks-ref-safety-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 13px; padding: 12px 13px; border: 1px solid rgba(245,190,72,.18); border-radius: 11px; color: #9e8b67; background: rgba(245,190,72,.055); font-size: 11px; line-height: 1.5; }
.ks-ref-safety-note svg { flex: 0 0 15px; width: 15px; height: 15px; color: #e5b758; }
.ks-ref-steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.ks-ref-step { position: relative; display: grid; align-content: start; gap: 8px; min-height: 145px; padding: 16px; border: 1px solid #242b34; border-radius: 13px; background: #101419; }
.ks-ref-step-number { position: absolute; top: 12px; right: 13px; color: #4c5968; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 800; }
.ks-ref-step > svg { width: 22px; height: 22px; color: #68d8fb; }
.ks-ref-step strong { color: #ebf0f3; font-size: 13px; }
.ks-ref-step p { margin: 0; color: #7e8997; font-size: 11px; line-height: 1.5; }
.ks-ref-heading-icon { width: 22px; height: 22px; color: #6edbff; }
.ks-ref-description-copy { color: #929dab; font-size: 13px; line-height: 1.75; white-space: normal; }
.ks-ref-feature-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ks-ref-feature-list span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid rgba(53,196,255,.14); border-radius: 9px; color: #9ec8d7; background: rgba(53,196,255,.06); font-size: 10px; }
.ks-ref-feature-list svg { width: 13px; height: 13px; color: #71dda2; }
.ks-ref-rating-total { gap: 9px; padding: 8px 10px; border: 1px solid #2b313a; border-radius: 10px; }
.ks-ref-rating-total > strong { color: #f4c76d; font-size: 17px; }
.ks-ref-rating-total > span { display: grid; gap: 2px; color: #f4c76d; letter-spacing: .12em; font-size: 11px; }
.ks-ref-rating-total small { color: #7b8795; font-size: 9px; letter-spacing: 0; }
.ks-ref-review-empty { justify-content: center; gap: 13px; min-height: 108px; padding: 17px; border: 1px dashed #2a323c; border-radius: 13px; }
.ks-ref-review-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #e8b85b; background: rgba(245,190,72,.1); }
.ks-ref-review-icon svg { width: 20px; height: 20px; }
.ks-ref-review-empty > div { display: grid; gap: 4px; flex: 1; }
.ks-ref-review-empty strong { color: #eef3f6; font-size: 13px; }
.ks-ref-review-empty p { margin: 0; color: #7d8997; font-size: 11px; }
.ks-ref-review-empty button { padding: 8px 10px; border: 1px solid #2c333e; border-radius: 8px; color: #677483; background: #15191f; font-size: 10px; cursor: not-allowed; }
.ks-ref-other-section { margin-top: 26px; }
.ks-ref-other-section .ks-ref-section-heading { margin-bottom: 14px; }
.ks-ref-processing { text-align: center; }
.ks-ref-processing-spinner { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 15px; border: 3px solid rgba(77,214,255,.17); border-top-color: #53d8ff; border-radius: 50%; color: #62dcff; animation: ksRefSpin .8s linear infinite; }
.ks-ref-processing-spinner svg { width: 24px; height: 24px; animation: ksRefPulse 1.4s ease-in-out infinite; }
.ks-ref-processing h3 { margin: 0 0 4px; color: #fff; font-size: 17px; }
.ks-ref-processing p { margin: 0; color: #8b96a2; font-size: 12px; }
@keyframes ksRefSpin { to { transform: rotate(360deg); } }
@keyframes ksRefPulse { 50% { transform: scale(1.15); opacity: .65; } }

body.theme1-body[data-theme="light"] .ks-ref-visual-card,
body.theme1-body[data-theme="light"] .ks-ref-buy-panel,
body.theme1-body[data-theme="light"] .ks-ref-spec-section,
body.theme1-body[data-theme="light"] .ks-ref-steps-section,
body.theme1-body[data-theme="light"] .ks-ref-content-card,
body.theme1-body[data-theme="light"] .ks-ref-reviews-section { border-color: #dce5ef; background: #fff; box-shadow: 0 14px 34px rgba(35,61,91,.07); }
body.theme1-body[data-theme="light"] .ks-ref-browser-bar { border-color: #e3eaf1; background: #f8fafc; }
body.theme1-body[data-theme="light"] .ks-ref-panel-heading h2,
body.theme1-body[data-theme="light"] .ks-ref-section-heading h2,
body.theme1-body[data-theme="light"] .ks-ref-label-row label,
body.theme1-body[data-theme="light"] .ks-ref-package-copy strong,
body.theme1-body[data-theme="light"] .ks-ref-summary-total,
body.theme1-body[data-theme="light"] .ks-ref-spec-card strong,
body.theme1-body[data-theme="light"] .ks-ref-step strong,
body.theme1-body[data-theme="light"] .ks-ref-review-empty strong { color: #172033; }
body.theme1-body[data-theme="light"] .ks-ref-price-intro { border-color: #e5ebf1; color: #728096; }
body.theme1-body[data-theme="light"] .ks-ref-package-option,
body.theme1-body[data-theme="light"] .ks-ref-quantity-row,
body.theme1-body[data-theme="light"] .ks-ref-coupon-input,
body.theme1-body[data-theme="light"] .ks-ref-spec-card,
body.theme1-body[data-theme="light"] .ks-ref-step { border-color: #dfe7ef; background: #f8fafc; }
body.theme1-body[data-theme="light"] .ks-ref-package-option.is-selected { border-color: #39afd7; background: #eefaff; }
body.theme1-body[data-theme="light"] .ks-ref-package-copy small,
body.theme1-body[data-theme="light"] .ks-ref-label-row span,
body.theme1-body[data-theme="light"] .ks-ref-summary > div,
body.theme1-body[data-theme="light"] .ks-ref-spec-card small,
body.theme1-body[data-theme="light"] .ks-ref-step p,
body.theme1-body[data-theme="light"] .ks-ref-review-empty p { color: #728096; }
body.theme1-body[data-theme="light"] .ks-ref-summary { border-color: #d6edf5; background: linear-gradient(135deg, #f0fbfe, #f8f5ff); }
body.theme1-body[data-theme="light"] .ks-ref-summary > div strong { color: #29364b; }
body.theme1-body[data-theme="light"] .ks-ref-summary-total { border-color: #e0e8f0; }
body.theme1-body[data-theme="light"] .ks-ref-benefit { border-color: #dfe7ef; color: #526177; background: #f8fafc; }
body.theme1-body[data-theme="light"] .ks-ref-safety-note { border-color: #f2dfb0; color: #856d38; background: #fffaf0; }
body.theme1-body[data-theme="light"] .ks-ref-review-empty { border-color: #dce5ef; }

@media (max-width: 1040px) {
    .ks-ref-product-grid { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); }
    .ks-ref-spec-grid, .ks-ref-steps-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
    .ks-ref-product-grid { grid-template-columns: 1fr; }
    .ks-ref-buy-panel { position: static; }
    .ks-ref-visual-media, .ks-ref-hero-image { min-height: 360px; }
}
@media (max-width: 560px) {
    .ks-ref-product-page { padding-right: 12px; padding-left: 12px; padding-bottom: 50px; }
    .ks-ref-visual-media, .ks-ref-hero-image { min-height: 310px; }
    .ks-ref-visual-copy { right: 16px; bottom: 18px; left: 16px; }
    .ks-ref-visual-copy h1 { font-size: 28px; }
    .ks-ref-visual-copy p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 11px; }
    .ks-ref-downloads, .ks-ref-benefit-row, .ks-ref-spec-grid, .ks-ref-steps-grid { grid-template-columns: 1fr; }
    .ks-ref-buy-panel, .ks-ref-spec-section, .ks-ref-steps-section, .ks-ref-content-card, .ks-ref-reviews-section { padding: 16px; border-radius: 15px; }
    .ks-ref-section-heading { align-items: flex-start; flex-direction: column; }
    .ks-ref-section-chip, .ks-ref-rating-total { align-self: flex-start; }
    .ks-ref-review-empty { align-items: flex-start; flex-wrap: wrap; justify-content: flex-start; }
    .ks-ref-review-empty > div { flex-basis: calc(100% - 53px); }
    .ks-ref-review-empty button { margin-left: 53px; }
    .ks-ref-buy-trust { gap: 5px; font-size: 8px; }
}

/* Product overrides must remain last so the light reference treatment wins over the base product skin. */
@media (min-width: 1180px) {
    body.theme1-body[data-theme="light"] .ks-ref-product-grid { grid-template-columns: minmax(0, 1.65fr) minmax(430px, .95fr); gap: 28px; }
}
body.theme1-body[data-theme="light"] .ks-ref-product-page { padding-top: 22px; }
body.theme1-body[data-theme="light"] .ks-ref-breadcrumb { margin-bottom: 26px; color: #758092; font-size: 15px; }
body.theme1-body[data-theme="light"] .ks-ref-breadcrumb a { color: #687386; }
body.theme1-body[data-theme="light"] .ks-ref-visual-card {
    border-color: #dce5ed;
    border-radius: 21px;
    box-shadow: 0 17px 42px rgba(31,72,100,.10);
}
body.theme1-body[data-theme="light"] .ks-ref-browser-bar { height: 60px; padding-inline: 20px; border-color: #e4ebf1; background: #fff; }
body.theme1-body[data-theme="light"] .ks-ref-visual-media,
body.theme1-body[data-theme="light"] .ks-ref-hero-image { min-height: 520px; }
body.theme1-body[data-theme="light"] .ks-ref-buy-panel {
    position: sticky;
    top: 154px;
    overflow: hidden;
    border-color: #a8dcf4;
    border-radius: 21px;
    background:
        radial-gradient(circle at 95% 0, rgba(87,203,238,.16) 0 46px, transparent 47px),
        radial-gradient(circle at 92% 15%, rgba(87,203,238,.10) 0 14px, transparent 15px),
        linear-gradient(145deg, #effaff 0%, #ffffff 58%, #f5fbff 100%);
    box-shadow: 0 18px 42px rgba(34,122,160,.10);
}
body.theme1-body[data-theme="light"] .ks-ref-buy-panel::after {
    position: absolute;
    top: -28px;
    right: -32px;
    width: 130px;
    height: 130px;
    content: '';
    border: 13px solid rgba(71,190,230,.10);
    border-radius: 28px;
    box-shadow: 0 62px 0 -32px rgba(71,190,230,.09), 0 96px 0 -47px rgba(71,190,230,.08);
    pointer-events: none;
}
body.theme1-body[data-theme="light"] .ks-ref-buy-panel > * { position: relative; z-index: 1; }
body.theme1-body[data-theme="light"] .ks-ref-panel-heading h2 { font-size: 25px; }
body.theme1-body[data-theme="light"] .ks-ref-eyebrow { font-size: 12px; }
body.theme1-body[data-theme="light"] .ks-ref-price-intro { padding-top: 15px; padding-bottom: 19px; border-color: #deebf2; font-size: 13px; }
body.theme1-body[data-theme="light"] .ks-ref-price-intro strong { font-size: 17px; }
body.theme1-body[data-theme="light"] .ks-ref-form-block { padding-top: 19px; }
body.theme1-body[data-theme="light"] .ks-ref-label-row label { color: #182336; font-size: 14px; }
body.theme1-body[data-theme="light"] .ks-ref-label-row span { font-size: 12px; }
body.theme1-body[data-theme="light"] .ks-ref-package-option,
body.theme1-body[data-theme="light"] .ks-ref-quantity-row,
body.theme1-body[data-theme="light"] .ks-ref-coupon-input { background: rgba(255,255,255,.76); }
body.theme1-body[data-theme="light"] .ks-ref-package-option { padding: 14px; border-radius: 15px; }
body.theme1-body[data-theme="light"] .ks-ref-package-copy strong { font-size: 14px; }
body.theme1-body[data-theme="light"] .ks-ref-package-copy small { font-size: 11px; }
body.theme1-body[data-theme="light"] .ks-ref-package-price b { font-size: 15px; }
body.theme1-body[data-theme="light"] .ks-ref-quantity-row { height: 49px; }
body.theme1-body[data-theme="light"] .ks-ref-coupon-input { height: 47px; }
body.theme1-body[data-theme="light"] .ks-ref-summary { background: rgba(255,255,255,.60); }
body.theme1-body[data-theme="light"] .ks-ref-buy-button { min-height: 52px; border-radius: 13px; font-size: 14px; }
body.theme1-body[data-theme="light"] .ks-ref-buy-trust { font-size: 10px; }
@media (max-width: 1100px) {
    body.theme1-body[data-theme="light"] .ks-ref-product-grid { grid-template-columns: minmax(0, 1.35fr) minmax(370px, .9fr); gap: 18px; }
}
@media (max-width: 900px) {
    body.theme1-body[data-theme="light"] .ks-ref-product-grid { grid-template-columns: 1fr; }
    body.theme1-body[data-theme="light"] .ks-ref-buy-panel { position: static; }
}
@media (max-width: 560px) {
    body.theme1-body[data-theme="light"] .ks-ref-visual-media,
    body.theme1-body[data-theme="light"] .ks-ref-hero-image { min-height: 340px; }
}

/* Last desktop geometry pass: this intentionally comes after all base product rules. */
@media (min-width: 901px) {
    #theme1MenuToggle { display: none; }
    .ks-product-detail.ks-ref-product-page { width: calc(100% + 15px); }
    body.theme1-body[data-theme="light"] .ks-ref-product-page { padding-top: 18px; }
    body.theme1-body[data-theme="light"] .ks-ref-product-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; }
    body.theme1-body[data-theme="light"] .ks-ref-browser-bar { height: 50px; }
    body.theme1-body[data-theme="light"] .ks-ref-visual-media,
    body.theme1-body[data-theme="light"] .ks-ref-hero-image { min-height: 415px; }
    body.theme1-body[data-theme="light"] .ks-ref-buy-panel { min-height: 826px; }
}
/* Recent activity: match the reference storefront avatar rows and hover rhythm. */
.ks-activity { border-radius: 18px; }
.ks-activity-head { min-height: 78px; padding: 16px 20px; }
.ks-activity-head-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: 16px; }
.ks-activity-head h3 { font-weight: 800; letter-spacing: -.015em; }
.ks-activity-count { min-height: 29px; padding-inline: 11px; font-size: 11px; }
.ks-activity-item { min-height: 66px; padding: 10px 20px; border-radius: 12px; transition: background .18s ease; }
.ks-activity-item:hover { background: rgba(148,163,184,.08); }
.ks-activity-avatar { position: relative; width: 40px; height: 40px; flex-basis: 40px; overflow: hidden; border-radius: 12px; box-shadow: none; background: rgba(34,185,242,.10); }
.ks-activity-avatar img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ks-activity-avatar-fallback { position: relative; z-index: 0; }
body.theme1-body[data-theme="light"] .ks-activity-item:hover { background: rgba(100,116,139,.07); }
body.theme1-body[data-theme="light"] .ks-activity-avatar { border-radius: 12px; background: #eef9fd; box-shadow: none; }
body.theme1-body[data-theme="light"] .ks-activity-deposits .ks-activity-avatar { background: #eefbf5; }
/* Reference-style announcement and purchase tickers. */
.ks-notice { display: flex; align-items: center; gap: 12px; min-height: 56px; overflow: hidden; margin-top: 20px; padding: 7px 18px 7px 12px; border-radius: 17px; background: linear-gradient(90deg, rgba(17,20,27,.98), rgba(12,14,18,.96)); }
.ks-notice-icon, .ks-ticker-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 13px; }
.ks-notice-icon { border: 1px solid rgba(255,111,145,.45); color: #ff4f79; background: rgba(255,74,117,.13); box-shadow: 0 5px 16px rgba(255,74,117,.12); }
.ks-notice-icon svg, .ks-ticker-icon svg { width: 19px; height: 19px; stroke-width: 2.5; }
.ks-notice-window, .ks-ticker-window { min-width: 0; overflow: hidden; flex: 1; }
.ks-notice-track, .ks-ticker-track { display: flex; width: max-content; align-items: center; white-space: nowrap; }
.ks-notice-track { gap: 58px; animation: ksNoticeTicker 18s linear infinite; }
.ks-notice-item { color: #e0e5eb; font-size: 13px; font-weight: 650; }
@keyframes ksNoticeTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ks-notice:hover .ks-notice-track, .ks-ticker:hover .ks-ticker-track { animation-play-state: paused; }
.ks-ticker { display: flex; align-items: center; gap: 12px; min-height: 56px; margin-top: 12px; padding: 7px 18px 7px 12px; border-radius: 17px; background: linear-gradient(90deg, rgba(13,18,20,.98), rgba(10,14,16,.96)); }
.ks-ticker-icon { border: 1px solid rgba(49,218,163,.4); color: #15c88d; background: rgba(24,205,143,.13); box-shadow: 0 5px 16px rgba(24,205,143,.1); }
.ks-ticker-track { gap: 34px; animation: ksTicker 20s linear infinite; }
.ks-ticker-item { display: inline-flex; align-items: baseline; gap: 6px; color: #89929e; font-size: 12px; }
.ks-ticker-item b { color: #e3e8ed; font-weight: 800; }
.ks-ticker-item em { color: #87909b; font-style: normal; font-weight: 500; }
.ks-ticker-item strong { color: #f0f2f4; font-weight: 800; }
.ks-ticker-item small { color: #17c98d; font-size: 12px; font-weight: 800; }
.ks-ticker-item time { color: #8b949f; font-size: 11px; }
.ks-ticker-dot { color: #65707b; font-weight: 800; }
body.theme1-body[data-theme="light"] .ks-notice { border-color: #dce5ef; background: linear-gradient(90deg, #fff, #fbfdff); box-shadow: 0 8px 22px rgba(35,61,91,.04); }
body.theme1-body[data-theme="light"] .ks-notice-item { color: #243247; }
body.theme1-body[data-theme="light"] .ks-ticker { border-color: #dce5ef; background: linear-gradient(90deg, #fff, #fbfffd); box-shadow: 0 8px 22px rgba(35,61,91,.04); }
body.theme1-body[data-theme="light"] .ks-ticker-item b { color: #243247; }
body.theme1-body[data-theme="light"] .ks-ticker-item strong { color: #1d2838; }
body.theme1-body[data-theme="light"] .ks-ticker-item em, body.theme1-body[data-theme="light"] .ks-ticker-item time { color: #7b8797; }
@media (max-width: 640px) { .ks-notice, .ks-ticker { min-height: 52px; padding-right: 12px; border-radius: 14px; } .ks-notice-icon, .ks-ticker-icon { width: 35px; height: 35px; flex-basis: 35px; border-radius: 11px; } .ks-notice-item, .ks-ticker-item { font-size: 11px; } .ks-ticker-item time { font-size: 10px; } .ks-notice-track { gap: 40px; } .ks-ticker-track { gap: 25px; } }
/* Reference account popover: profile, wallet balance and quick actions. */
.theme1-account-menu { position: relative; }
.theme1-account-trigger { cursor: pointer; font: inherit; text-align: left; }
.theme1-account-avatar { position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; overflow: hidden; border: 2px solid rgba(142,220,249,.9); border-radius: 50%; background: #eaf8ff; }
.theme1-account-avatar img, .theme1-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.theme1-account-avatar-fallback, .theme1-profile-avatar-fallback { color: #159fd9; font-size: 16px; font-weight: 800; }
.theme1-account-online { position: absolute; right: -1px; bottom: 0; width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; background: #12c78b; }
.theme1-account-summary { display: grid; min-width: 0; gap: 1px; }
.theme1-account-summary strong { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; line-height: 1.05; }
.theme1-account-summary strong svg { width: 14px; height: 14px; color: #0a9bdb; }
.theme1-account-summary small { overflow: hidden; color: #758398; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.theme1-account-chevron { width: 14px; height: 14px; color: #6c8397; }
.theme1-account-panel { position: absolute; z-index: 160; top: calc(100% + 12px); right: 0; width: min(426px, calc(100vw - 24px)); overflow: hidden; padding: 10px; border: 1px solid #d8e5ee; border-radius: 22px; background: #fff; box-shadow: 0 26px 60px rgba(35,61,91,.22); }
.theme1-account-panel[hidden] { display: none; }
.theme1-profile-card { position: relative; display: flex; align-items: center; gap: 13px; min-height: 91px; padding: 12px 13px; overflow: hidden; border: 1px solid #b8e9fb; border-radius: 19px; background: linear-gradient(135deg, #f1fbff, #f7fbff 58%, #eef9fd); }
.theme1-profile-avatar { position: relative; display: grid; place-items: center; width: 61px; height: 61px; flex: 0 0 61px; overflow: hidden; border: 2px solid #8ddcf8; border-radius: 50%; background: #e8f8ff; }
.theme1-profile-avatar .theme1-account-online { right: 1px; bottom: 2px; width: 16px; height: 16px; border-width: 3px; }
.theme1-profile-copy { display: grid; min-width: 0; gap: 5px; }
.theme1-profile-copy strong { display: flex; align-items: center; gap: 5px; overflow: hidden; color: #111d2b; font-size: 18px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.theme1-profile-copy strong svg { width: 16px; height: 16px; flex: 0 0 16px; color: #11a8df; fill: #11a8df; stroke: #fff; }
.theme1-profile-copy small { overflow: hidden; color: #7d8b99; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.theme1-profile-ghost { position: absolute; right: 14px; display: grid; place-items: center; width: 67px; height: 67px; border-radius: 50%; color: #9edcf0; background: rgba(154,224,246,.20); }
.theme1-profile-ghost svg { width: 42px; height: 42px; stroke-width: 1.25; }
.theme1-wallet-card { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 98px; overflow: hidden; margin-top: 7px; padding: 14px 16px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #139ddd, #28b6e5); box-shadow: 0 8px 18px rgba(18,157,220,.18); }
.theme1-wallet-card > div { position: relative; z-index: 1; display: grid; gap: 7px; }
.theme1-wallet-card > div span { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.theme1-wallet-card > div span svg { width: 17px; height: 17px; stroke-width: 1.8; }
.theme1-wallet-card > div strong { font-size: 25px; font-weight: 850; line-height: 1; }
.theme1-wallet-card > a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 999px; color: #fff; background: rgba(8,107,161,.44); font-size: 11px; font-weight: 800; text-decoration: none; }
.theme1-wallet-card > a:hover { background: rgba(8,91,139,.62); }
.theme1-wallet-card > a svg { width: 14px; height: 14px; }
.theme1-wallet-ghost { position: absolute; right: 22px; bottom: -12px; width: 88px; height: 88px; color: rgba(255,255,255,.18); transform: rotate(-14deg); }
.theme1-account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 3px; margin-top: 9px; padding: 11px 3px 9px; border-top: 1px solid #edf1f4; }
.theme1-account-grid a { display: grid; justify-items: center; gap: 6px; min-width: 0; padding: 7px 3px; border-radius: 13px; color: #657386; text-decoration: none; transition: background .18s ease, color .18s ease, transform .18s ease; }
.theme1-account-grid a:hover { color: #109ed8; background: #f1fbff; transform: translateY(-1px); }
.theme1-account-grid a > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: #0aa6e1; background: #f2fbff; }
.theme1-account-grid a > span svg { width: 21px; height: 21px; stroke-width: 1.8; }
.theme1-account-grid small { overflow: hidden; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.theme1-account-logout { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 45px; margin-top: 2px; border: 1px solid #ffbdc2; border-radius: 15px; color: #f34c55; background: #fff0f1; font-size: 13px; font-weight: 800; text-decoration: none; }
.theme1-account-logout:hover { color: #d9323b; background: #ffe2e5; }
.theme1-account-logout svg { width: 18px; height: 18px; }
body.theme1-body[data-theme="dark"] .theme1-account-trigger { border-color: rgba(54,184,244,.28); color: #effaff; background: linear-gradient(135deg, #116fae, #149edb); }
body.theme1-body[data-theme="dark"] .theme1-account-summary small { color: rgba(239,250,255,.72); }
body.theme1-body[data-theme="dark"] .theme1-account-panel { border-color: #2b3945; background: #11171c; box-shadow: 0 26px 60px rgba(0,0,0,.48); }
body.theme1-body[data-theme="dark"] .theme1-profile-card { border-color: #2b6177; background: linear-gradient(135deg, #102531, #131e27 58%, #122b38); }
body.theme1-body[data-theme="dark"] .theme1-profile-copy strong { color: #edfaff; }
body.theme1-body[data-theme="dark"] .theme1-profile-copy small { color: #91a8b7; }
body.theme1-body[data-theme="dark"] .theme1-profile-ghost { color: #72cce9; background: rgba(75,169,204,.15); }
body.theme1-body[data-theme="dark"] .theme1-account-grid { border-color: #25323c; }
body.theme1-body[data-theme="dark"] .theme1-account-grid a { color: #9aabb8; }
body.theme1-body[data-theme="dark"] .theme1-account-grid a:hover { color: #59d5ff; background: rgba(53,196,255,.08); }
body.theme1-body[data-theme="dark"] .theme1-account-grid a > span { color: #59d5ff; background: rgba(53,196,255,.10); }
body.theme1-body[data-theme="dark"] .theme1-account-logout { border-color: #7d3d49; color: #ff8690; background: rgba(194,55,72,.15); }
body.theme1-body[data-theme="dark"] .theme1-account-logout:hover { background: rgba(194,55,72,.26); }
@media (max-width: 640px) { .theme1-account-panel { right: -7px; width: min(426px, calc(100vw - 20px)); } .theme1-account-trigger { gap: 6px; padding-inline: 8px; } .theme1-account-avatar { width: 38px; height: 38px; flex-basis: 38px; } .theme1-account-summary strong { font-size: 12px; } .theme1-account-summary small { max-width: 92px; } }
