:root {
    --bg: #06111f;
    --bg-deep: #020813;
    --panel: rgba(12, 27, 45, 0.78);
    --panel-strong: rgba(17, 39, 64, 0.94);
    --line: rgba(112, 220, 255, 0.22);
    --line-strong: rgba(112, 220, 255, 0.48);
    --text: #eaf6ff;
    --muted: #9eb4c8;
    --cyan: #707070;
    --mint: #4f4f4f;
    --orange: #ff8a2a;
    --red: #ff4d5f;
    --blue: #2aa7ff;
    --green: #666666;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* SmartOne-style portal skin with Orion identity */
body {
    color: #24384d;
    background: #ffffff;
}

.site-shell {
    overflow: visible;
}

.site-shell::before {
    display: none;
}

.topbar {
    width: 100%;
    max-width: none;
    min-height: 70px;
    justify-content: center;
    gap: 42px;
    padding: 0 32px;
    background: #3a3636;
    border-bottom: 3px solid #efefef;
    backdrop-filter: none;
}

.topbar .brand {
    margin-right: 22px;
}

.brand-copy strong {
    color: #7a7a7a;
}

.topbar .brand-copy strong {
    color: #8b8b8b;
}

.topbar .brand-copy small {
    color: #ff7d00;
}

.topnav {
    gap: 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
}

.topnav a {
    display: grid;
    place-items: center;
    min-height: 70px;
    padding: 0 14px;
}

.topnav a:hover,
.topnav a.active {
    color: #111111;
    background: #ffffff;
}

.topnav a:hover {
    background: #f1f1f1;
}

.topnav a.active,
.topnav a.active:hover {
    background: #ffffff;
}

.nav-cta {
    min-height: 40px;
    color: #111111;
    background: #ffffff;
    box-shadow: none;
}

.notice-band {
    width: 100%;
    margin: 0;
    padding: 34px 24px;
    color: #24384d;
    background: #fff4c8;
    text-align: center;
    line-height: 1.45;
}

.home-showcase {
    display: grid;
    place-items: center;
    min-height: 395px;
    background: #ffffff;
}

.tv-outline {
    position: relative;
    display: grid;
    place-items: center;
    width: min(420px, 75vw);
    height: 245px;
    border: 5px solid #f20d0d;
}

.tv-outline::before,
.tv-outline::after {
    content: "";
    position: absolute;
    bottom: -21px;
    width: 145px;
    height: 5px;
    background: #f20d0d;
}

.tv-outline::before {
    left: 88px;
    transform: rotate(-4deg);
}

.tv-outline::after {
    right: 88px;
    transform: rotate(4deg);
}

.hero-brand {
    transform: scale(1.65);
}

.home-copy-section {
    padding: 34px 24px 40px;
    background: #f2f7fb;
    text-align: center;
}

.home-copy-section p {
    max-width: 890px;
    margin: 0 auto 14px;
    color: #2d4057;
    font-size: 17px;
    line-height: 1.55;
}

.home-actions-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 42px 20px 74px;
    background: #ffffff;
}

.feature-section,
.page-hero,
.page-section,
.portal-section,
.steps-section,
.faq-section,
.footer,
.panel-layout,
.auth-layout,
.account-strip,
.user-panel-grid {
    width: min(1180px, calc(100% - 56px));
}

.page-hero {
    padding: 54px 0 22px;
    text-align: center;
}

.page-hero h1,
.auth-copy h1,
h1 {
    color: #24384d;
    font-size: clamp(38px, 4.5vw, 58px);
    line-height: 1.05;
    letter-spacing: 0;
}

.page-hero p:not(.eyebrow),
.auth-copy p:not(.eyebrow) {
    margin-left: auto;
    margin-right: auto;
    color: #41566e;
}

.eyebrow {
    color: #4b4b4b;
    letter-spacing: 0.04em;
}

.panel,
.steps article,
.faq-grid details,
.feature-card,
.account-card {
    color: #23384d;
    background: #ffffff;
    border: 1px solid #d5dde5;
    border-radius: 0;
    box-shadow: none;
}

.panel::before {
    display: none;
}

.panel-title p,
.dashboard-cards p,
.feature-card p,
.steps p,
.faq-grid p,
.empty-note,
.diagnostics-list p,
.account-card p {
    color: #52687e;
}

input {
    color: #24384d;
    background: #ffffff;
    border: 1px solid #cbd5df;
}

.device-state,
.dashboard-cards article,
.device-row button {
    color: #24384d;
    background: #f7fafc;
    border-color: #d5dde5;
}

.device-state span,
.device-state code,
.device-row span {
    color: #52687e;
}

.button.primary,
.nav-cta {
    color: #ffffff;
    background: #4c4c4c;
    box-shadow: none;
}

.button.secondary {
    color: #ffffff;
    background: #3a3636;
    border-color: #3a3636;
}

.button.ghost {
    color: #24384d;
    background: #ffffff;
    border: 1px solid #cbd5df;
}

.button.danger {
    color: #ffffff;
    background: #d62736;
    border-color: #d62736;
}

.step,
.feature-icon {
    color: #ffffff;
    background: #555555;
}

.footer {
    color: #52687e;
    border-top: 1px solid #d5dde5;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 52% 22%, rgba(55, 217, 255, 0.16), transparent 28rem),
        radial-gradient(circle at 80% 10%, rgba(255, 138, 42, 0.12), transparent 22rem),
        linear-gradient(180deg, var(--bg), var(--bg-deep));
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.site-shell {
    position: relative;
    overflow: hidden;
}

.site-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.32) 1px, transparent 1px),
        radial-gradient(circle, rgba(53,217,255,0.22) 1px, transparent 1px);
    background-size: 112px 112px, 173px 173px;
    background-position: 18px 26px, 62px 84px;
    opacity: 0.3;
}

.topbar,
.hero,
.portal-section,
.steps-section,
.faq-section,
.footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: conic-gradient(from 90deg, var(--red), var(--orange), var(--green), var(--blue), var(--red));
    box-shadow: 0 0 28px rgba(53, 217, 255, 0.34);
}

.brand-mark span {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 17px solid #ffffff;
    transform: translateX(2px);
}

.brand-copy {
    display: grid;
    line-height: 1;
}

.brand-copy strong {
    letter-spacing: 0.18em;
    font-size: 18px;
}

.brand-copy small {
    color: var(--orange);
    letter-spacing: 0.45em;
    font-weight: 800;
    font-size: 10px;
    margin-top: 5px;
}

.brand.small .brand-mark {
    width: 32px;
    height: 32px;
}

.brand.small .brand-mark span {
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-left-width: 13px;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--muted);
    font-weight: 700;
}

.topnav a:hover {
    color: var(--text);
}

.topnav a.active {
    color: var(--mint);
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 900;
    cursor: pointer;
}

.button.primary,
.nav-cta {
    color: #03111d;
    background: linear-gradient(135deg, var(--mint), var(--cyan));
    box-shadow: 0 14px 34px rgba(53, 217, 255, 0.26);
}

.button.secondary {
    color: var(--text);
    background: rgba(42, 167, 255, 0.18);
    border: 1px solid rgba(42, 167, 255, 0.42);
}

.button.ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.button.danger {
    color: #fff;
    background: rgba(255, 77, 95, 0.16);
    border: 1px solid rgba(255, 77, 95, 0.42);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    align-items: center;
    gap: 56px;
    min-height: 720px;
    padding: 86px 0 96px;
}

.starfield {
    position: absolute;
    inset: 40px -20px;
    border-radius: 32px;
    background:
        linear-gradient(120deg, rgba(53,217,255,0.08), transparent 35%),
        linear-gradient(220deg, rgba(255,138,42,0.07), transparent 35%);
    border: 1px solid rgba(112, 220, 255, 0.08);
    opacity: 0.9;
}

.hero-copy,
.hero-panel {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--mint);
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 13px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 720px;
    font-size: clamp(48px, 7vw, 92px);
    line-height: 0.92;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.hero-text {
    max-width: 620px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.55;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-panel {
    min-height: 520px;
}

.constellation-card {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 45%, rgba(53, 217, 255, 0.18), transparent 34%),
        rgba(8, 20, 35, 0.76);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.constellation-card svg {
    width: min(72%, 420px);
    filter: drop-shadow(0 0 22px rgba(53, 217, 255, 0.35));
}

.constellation-card line {
    stroke: rgba(121, 255, 209, 0.58);
    stroke-width: 2;
}

.constellation-card circle {
    fill: var(--cyan);
    stroke: #ffffff;
    stroke-width: 1.8;
}

.pulse {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    border: 1px solid rgba(53, 217, 255, 0.24);
    animation: pulse 3.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.9); opacity: 0.35; }
    50% { transform: scale(1.18); opacity: 0.85; }
}

.device-card {
    position: absolute;
    right: 28px;
    bottom: 30px;
    width: min(86%, 440px);
    border-radius: 22px;
    background: rgba(2, 8, 19, 0.82);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 30px 70px rgba(0,0,0,0.45);
    overflow: hidden;
}

.device-header {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: rgba(255,255,255,0.06);
}

.device-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--muted);
}

.device-screen {
    padding: 18px;
}

.screen-title {
    color: var(--mint);
    font-weight: 900;
    margin-bottom: 14px;
}

.screen-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 12px;
    color: var(--muted);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.screen-row span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: var(--text);
    font-weight: 900;
}

.screen-row.active {
    color: var(--text);
    background: rgba(53, 217, 255, 0.1);
}

.portal-section,
.steps-section,
.faq-section {
    padding: 92px 0;
}

.feature-section,
.page-hero,
.page-section,
.panel-layout {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.feature-section {
    padding: 86px 0;
}

.page-hero {
    position: relative;
    padding: 84px 0 42px;
}

.compact-hero {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero h1 {
    font-size: clamp(46px, 6vw, 78px);
    margin-bottom: 18px;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.55;
}

.page-section {
    padding-top: 34px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    display: grid;
    gap: 14px;
    min-height: 260px;
    padding: 28px;
    border-radius: 24px;
    background: rgba(12, 27, 45, 0.72);
    border: 1px solid rgba(112, 220, 255, 0.18);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    background: rgba(17, 39, 64, 0.88);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    color: #03111d;
    font-weight: 1000;
}

.feature-icon.cyan { background: var(--cyan); }
.feature-icon.green { background: var(--green); }
.feature-icon.orange { background: var(--orange); }

.feature-card p {
    color: var(--muted);
    line-height: 1.55;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.section-heading.compact {
    max-width: 640px;
}

.portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 22px;
    margin-bottom: 22px;
}

.panel-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 92px;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1fr);
    align-items: start;
    gap: 32px;
    padding: 86px 0 110px;
}

.auth-copy h1 {
    font-size: clamp(44px, 6vw, 78px);
}

.auth-copy p:not(.eyebrow) {
    color: var(--muted);
    font-size: 19px;
    line-height: 1.55;
}

.auth-grid {
    display: grid;
    gap: 20px;
}

.auth-card {
    display: grid;
    gap: 16px;
}

.account-strip {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1fr;
    gap: 18px;
}

.account-card {
    padding: 22px;
    border-radius: 22px;
    background: rgba(12, 27, 45, 0.72);
    border: 1px solid rgba(112, 220, 255, 0.18);
}

.account-card strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 28px;
    word-break: break-word;
}

.account-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.user-panel-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.44fr) minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 96px;
}

.user-panel-grid .dashboard-panel {
    grid-row: span 2;
}

.mini-form {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.playlist-editor {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid rgba(112, 220, 255, 0.16);
}

.panel-layout .dashboard-panel {
    grid-row: span 2;
}

.dashboard-panel {
    min-height: 540px;
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 22px;
}

.dashboard-top h2 {
    font-size: clamp(30px, 4vw, 48px);
    margin-bottom: 0;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-cards article {
    min-height: 170px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(2, 8, 19, 0.42);
    border: 1px solid rgba(112, 220, 255, 0.16);
}

.dashboard-cards strong {
    display: block;
    margin: 12px 0;
    font-size: 24px;
    word-break: break-word;
}

.dashboard-cards p {
    color: var(--muted);
    line-height: 1.45;
    margin-bottom: 0;
}

.metric-label {
    color: var(--mint);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.compact-actions {
    margin-top: 16px;
}

.panel-device-state {
    margin-top: 8px;
}

.panel {
    position: relative;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(16, 35, 58, 0.96), rgba(8, 20, 35, 0.92));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(121,255,209,0.09), transparent 45%, rgba(255,138,42,0.07));
}

.panel > * {
    position: relative;
    z-index: 1;
}

.panel-title {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.panel-title p {
    color: var(--muted);
    margin: 0;
}

.step {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #03111d;
    background: var(--mint);
    font-weight: 1000;
}

label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 800;
}

input {
    width: 100%;
    min-height: 54px;
    border-radius: 14px;
    border: 1px solid rgba(112, 220, 255, 0.24);
    color: var(--text);
    background: rgba(2, 8, 19, 0.48);
    padding: 0 16px;
    outline: none;
}

input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(53, 217, 255, 0.12);
}

.inline-field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.hint,
.form-message {
    color: var(--muted);
    margin: 14px 0 0;
}

.form-message[data-type="error"] {
    color: var(--red);
}

.form-message[data-type="warning"] {
    color: var(--orange);
}

.form-message[data-type="success"] {
    color: var(--mint);
}

.device-state {
    display: grid;
    gap: 10px;
    min-height: 126px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(2, 8, 19, 0.42);
    border: 1px solid rgba(255,255,255,0.1);
}

.device-state strong {
    font-size: 22px;
}

.device-state span,
.device-state code {
    color: var(--muted);
}

.device-state code {
    font-family: Consolas, ui-monospace, monospace;
}

.device-state.synced {
    border-color: rgba(121, 255, 209, 0.42);
}

.device-state.pending_validation {
    border-color: rgba(255, 138, 42, 0.5);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.steps article,
.faq-grid details {
    padding: 26px;
    border-radius: 22px;
    background: rgba(12, 27, 45, 0.72);
    border: 1px solid rgba(112, 220, 255, 0.18);
}

.steps span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 14px;
    color: #03111d;
    background: var(--orange);
    font-weight: 1000;
}

.steps p,
.faq-grid p {
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 0;
}

.faq-grid {
    display: grid;
    gap: 14px;
}

.faq-search {
    max-width: 520px;
    margin-bottom: 18px;
}

.device-list {
    display: grid;
    gap: 12px;
}

.device-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: stretch;
}

.device-row button {
    border: 1px solid rgba(112, 220, 255, 0.16);
    color: var(--text);
    background: rgba(2, 8, 19, 0.38);
    border-radius: 16px;
    padding: 14px;
    text-align: left;
    cursor: pointer;
}

.device-row.active button:first-child,
.device-row button:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(53, 217, 255, 0.12);
    outline: none;
}

.device-row strong,
.device-row span {
    display: block;
}

.device-row span {
    color: var(--muted);
    margin-top: 5px;
    font-size: 14px;
}

.icon-action {
    min-width: 76px;
    text-align: center !important;
    font-weight: 900;
}

.activity-log {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.activity-log li {
    padding: 12px 0;
    color: var(--muted);
    border-bottom: 1px solid rgba(112, 220, 255, 0.12);
}

.activity-log span {
    display: inline-block;
    min-width: 54px;
    color: var(--mint);
    font-weight: 900;
}

.empty-note,
.diagnostics-list p {
    color: var(--muted);
    line-height: 1.55;
}

#api-status[data-status="online"] {
    color: var(--mint);
}

#api-status[data-status="offline"] {
    color: var(--red);
}

.hidden-input {
    display: none;
}

.portal-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 50;
    max-width: min(420px, calc(100vw - 48px));
    padding: 16px 18px;
    border-radius: 16px;
    color: var(--text);
    background: rgba(8, 20, 35, 0.96);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.portal-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.portal-toast[data-type="success"] {
    border-color: rgba(121, 255, 209, 0.46);
}

.portal-toast[data-type="error"] {
    border-color: rgba(255, 77, 95, 0.55);
}

summary {
    cursor: pointer;
    font-weight: 900;
    font-size: 19px;
}

details p {
    margin-top: 14px;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 36px 0 48px;
    color: var(--muted);
    border-top: 1px solid rgba(112, 220, 255, 0.16);
}

@media (max-width: 900px) {
    .topnav,
    .nav-cta {
        display: none;
    }

    .hero,
    .portal-grid,
    .steps,
    .form-grid,
    .feature-grid,
    .panel-layout,
    .auth-layout,
    .account-strip,
    .user-panel-grid,
    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 58px;
    }

    .hero-panel {
        min-height: 420px;
    }

    .inline-field {
        grid-template-columns: 1fr;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .topbar,
    .hero,
    .feature-section,
    .page-hero,
    .page-section,
    .panel-layout,
    .auth-layout,
    .account-strip,
    .user-panel-grid,
    .portal-section,
    .steps-section,
    .faq-section,
    .footer {
        width: min(100% - 24px, 1180px);
    }

    .panel {
        padding: 20px;
        border-radius: 18px;
    }

    .hero-actions,
    .form-actions {
        display: grid;
    }

    .device-row {
        grid-template-columns: 1fr;
    }
}

/* Final unified light portal skin */
html,
body {
    color: #25384d;
    background: #ffffff !important;
}

.site-shell {
    background: #ffffff;
}

.site-shell::before,
.starfield,
.pulse {
    display: none !important;
}

.topbar {
    width: 100%;
    max-width: none;
    min-height: 52px;
    margin: 0 auto;
    padding: 0 72px;
    background: #393534 !important;
    border-bottom: 0;
}

body::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: -1;
    height: 58px;
    background: #06111f;
}

.topnav a {
    min-height: 52px;
    padding: 0 13px;
    color: #ffffff;
}

.topbar .brand-mark {
    width: 32px;
    height: 32px;
}

.topbar .brand-mark span {
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-left-width: 13px;
}

.topbar .brand-copy strong {
    font-size: 14px;
}

.topbar .brand-copy small {
    font-size: 8px;
    margin-top: 4px;
}

.topnav a.active,
.topnav a:hover {
    color: #4b4b4b;
    background: #ffffff;
}

.notice-band {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 32px 24px;
    color: #001f3b;
    background: #fff3c6 !important;
    border: 0;
}

.home-showcase,
.home-actions-row,
.feature-section,
.steps-section,
.faq-section,
.portal-section,
.page-section,
.panel-layout,
.auth-layout,
.account-strip,
.user-panel-grid,
.footer {
    background: #ffffff !important;
}

.home-copy-section {
    background: #f3f8fc !important;
}

.feature-section,
.steps-section,
.faq-section {
    width: 100% !important;
    max-width: none !important;
    padding-left: 72px;
    padding-right: 72px;
}

.page-hero,
.page-section,
.portal-section,
.panel-layout,
.auth-layout,
.account-strip,
.user-panel-grid,
.footer {
    width: 100% !important;
    max-width: none !important;
    padding-left: 72px;
    padding-right: 72px;
}

.home-copy-section p {
    max-width: 1180px;
}

.home-actions-row {
    width: 100%;
}

.home-showcase {
    width: 100%;
}

.feature-section,
.steps-section,
.faq-section {
    padding-top: 72px;
    padding-bottom: 72px;
}

.feature-grid,
.steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-section .section-heading,
.steps-section .section-heading,
.faq-section .section-heading {
    color: #25384d;
}

h1,
h2,
h3,
.dashboard-top h2,
.dashboard-cards strong,
.account-card strong,
.device-state strong,
.feature-card h3,
.steps h3,
summary {
    color: #24384d !important;
    text-shadow: none !important;
}

.eyebrow,
.metric-label {
    color: #4b4b4b !important;
}

.feature-grid,
.steps,
.dashboard-cards {
    gap: 18px;
}

.feature-card,
.steps article,
.faq-grid details,
.panel,
.account-card,
.dashboard-cards article,
.device-state,
.device-row button {
    color: #24384d !important;
    background: #ffffff !important;
    border: 1px solid #d5dde5 !important;
    border-radius: 2px !important;
    box-shadow: none !important;
}

.feature-card:hover {
    background: #f8fbfd !important;
    border-color: #9ec8da !important;
}

.feature-card p,
.steps p,
.faq-grid p,
.panel-title p,
.dashboard-cards p,
.account-card p,
.device-state span,
.device-state code,
.device-row span,
.activity-log li,
.empty-note,
.diagnostics-list p,
.footer {
    color: #52687e !important;
}

input {
    color: #24384d !important;
    background: #ffffff !important;
    border: 1px solid #cbd5df !important;
}

.button,
.nav-cta {
    border-radius: 999px;
    box-shadow: none !important;
}

.button.primary,
.nav-cta {
    color: #ffffff !important;
    background: #4c4c4c !important;
}

.button.secondary {
    color: #ffffff !important;
    background: #2f2f2f !important;
    border-color: #2f2f2f !important;
}

.button.ghost {
    color: #242424 !important;
    background: #ffffff !important;
    border: 1px solid #bfc5cb !important;
}

.button.danger {
    color: #ffffff !important;
    background: #d62736 !important;
    border-color: #d62736 !important;
}

.step,
.feature-icon,
.steps span {
    color: #ffffff !important;
    background: #555555 !important;
    border-radius: 8px !important;
}

.footer {
    border-top: 1px solid #d5dde5 !important;
}

.portal-toast {
    color: #24384d !important;
    background: #ffffff !important;
    border: 1px solid #777777 !important;
}

@media (max-width: 900px) {
    .topbar {
        width: 100%;
        padding: 0 18px;
        justify-content: space-between;
    }
}

/* Centered SmartOne-style header with language selector */
.topbar {
    display: flex !important;
    justify-content: center !important;
    padding: 0 !important;
}

.topbar-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.topbar-inner .brand {
    margin-right: 42px;
}

.topbar-inner .topnav {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.language-picker {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 16px;
    color: #ffffff;
}

.language-current {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    color: #ffffff;
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.language-current:hover,
.language-picker.open .language-current {
    background: rgba(255, 255, 255, 0.08);
}

.language-flag {
    position: relative;
    width: 26px;
    height: 16px;
    flex: 0 0 26px;
    overflow: hidden;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.flag-us {
    background: repeating-linear-gradient(
        to bottom,
        #b22234 0,
        #b22234 1.23px,
        #ffffff 1.23px,
        #ffffff 2.46px
    );
}

.flag-us::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 11px;
    height: 8.6px;
    background: #3c3b6e;
}

.flag-es {
    background: linear-gradient(to bottom, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.language-code {
    font-size: 12px;
}

.language-caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
}

.language-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 40;
    min-width: 150px;
    padding: 6px;
    display: none;
    background: #ffffff;
    border: 1px solid #d6d6d6;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.language-picker.open .language-menu {
    display: grid;
    gap: 2px;
}

.language-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    color: #202020;
    background: #ffffff;
    border: 0;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.language-menu .language-flag {
    border-color: rgba(0, 0, 0, 0.18);
}

.language-menu button:hover,
.language-menu button.active {
    background: #eeeeee;
}

@media (max-width: 900px) {
    .topbar-inner {
        width: calc(100% - 24px);
        justify-content: space-between;
    }

    .topbar-inner .brand {
        margin-right: 0;
    }

    .language-current {
        min-height: 48px;
    }
}

/* Client login and SmartOne-style dashboard */
.client-login {
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 536px);
    align-items: center;
    gap: 110px;
    padding-top: 92px !important;
    padding-bottom: 92px !important;
    background: #ffffff !important;
}

.login-intro {
    max-width: 560px;
    color: #405a78;
}

.login-intro h1,
.login-intro h2,
.login-intro p {
    margin: 0;
    color: #405a78 !important;
    font-weight: 400;
}

.login-intro h1 {
    display: inline;
    margin-left: 16px;
    font-size: 46px;
    line-height: 1.1;
}

.login-intro h2 {
    margin-top: 16px;
    font-size: 34px;
}

.login-intro p {
    margin-top: 18px;
    font-size: 23px;
}

.login-intro hr {
    margin: 30px 0 0;
    border: 0;
    border-top: 1px solid #d6dde4;
}

.login-lock {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 34px;
    vertical-align: -4px;
    border-radius: 5px;
    background: #405a78;
}

.login-lock::before {
    content: "";
    position: absolute;
    left: 9px;
    top: -22px;
    width: 26px;
    height: 28px;
    border: 6px solid #405a78;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
}

.login-lock.create {
    background: #555555;
}

.login-lock.create::before {
    border-color: #555555;
}

.client-login-card {
    display: grid;
    gap: 22px;
    padding: 16px;
    color: #304963;
    background: #ffffff;
    border: 1px solid #d5dde5;
    border-radius: 6px;
}

.client-login-card label {
    display: grid;
    gap: 10px;
    color: #344960 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

.client-login-card input:not([type="checkbox"]) {
    min-height: 58px;
    padding: 0 18px;
    color: #405a78 !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    background: #ffffff !important;
    border: 1px solid #c9d3dd !important;
    border-radius: 5px;
}

.client-login-card input::placeholder {
    color: #6f7d8b !important;
    opacity: 1 !important;
}

.remember-line {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 8px !important;
}

.remember-line input {
    width: 20px;
    height: 20px;
}

.remember-line span {
    color: #344960 !important;
    font-size: 16px !important;
}

.captcha-box {
    min-height: 98px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px 26px;
    background: #f7f7f7;
    border: 1px solid #d8d8d8;
}

.captcha-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #23a455;
}

.captcha-box strong {
    color: #111111 !important;
    font-size: 13px;
    letter-spacing: 0.12em;
}

.client-login-button {
    min-height: 54px;
    color: #ffffff;
    background: #29a94a;
    border: 0;
    border-radius: 4px;
    font-size: 22px;
    cursor: pointer;
}

.client-login-links {
    margin: 0 -16px -16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f5f5f5;
    border-top: 1px solid #d5dde5;
}

.client-login-links.single {
    grid-template-columns: 1fr;
}

.client-login-links button,
.client-login-links a {
    min-height: 72px;
    display: grid;
    place-items: center;
    color: #0070b8;
    background: transparent;
    border: 0;
    font-size: 23px;
    cursor: pointer;
}

.client-login-links a {
    grid-column: 1 / -1;
    border-top: 1px solid #d5dde5;
}

.verification-box {
    display: grid;
    gap: 12px;
    padding: 16px;
    background: #fff7d8;
    border: 1px solid #e6cc75;
}

.verification-box[hidden] {
    display: none;
}

.verification-box p {
    margin: 0;
    color: #405a78;
}

.client-dashboard {
    display: grid;
    grid-template-columns: 265px minmax(0, 1fr);
    gap: 24px;
    max-width: 1210px !important;
    margin: 0 auto;
    padding-top: 16px !important;
    padding-bottom: 36px !important;
}

.client-sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
}

.client-box {
    color: #304963;
    background: #ffffff;
    border: 1px solid #d5dde5;
    border-radius: 3px;
    overflow: hidden;
}

.client-box header,
.dashboard-title {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: #ffffff;
    background: #4d4d4d;
    font-size: 18px;
}

.client-box-body {
    padding: 14px;
}

.client-box-body strong {
    display: block;
    color: #405a78 !important;
    font-size: 18px;
    text-transform: uppercase;
}

.client-box-body p,
.client-box-body a {
    color: #405a78;
    font-size: 18px;
}

.client-box-body hr {
    border: 0;
    border-top: 1px solid #d8d8d8;
}

.client-box footer {
    padding: 14px;
    background: #f6f6f6;
    border-top: 1px solid #d5dde5;
}

.client-box button {
    width: 100%;
    min-height: 38px;
    color: #111111;
    background: #ffffff;
    border: 1px solid #d5dde5;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
}

.info-note {
    padding: 14px;
    color: #006477 !important;
    background: #d1eef4;
    border: 1px solid #b9dfe7;
    border-radius: 3px;
    text-align: center;
}

.dashboard-main {
    border: 1px solid #d5dde5;
    border-radius: 3px;
    overflow: hidden;
}

.twofa-panel {
    margin: 12px;
    border: 1px solid #df2e45;
    border-radius: 3px;
    overflow: hidden;
}

.twofa-panel div {
    padding: 14px;
    color: #ffffff;
    background: #df2e45;
}

.twofa-panel h2,
.twofa-panel p {
    margin: 0 0 8px;
    color: inherit !important;
}

.twofa-panel h2 {
    font-size: 26px !important;
    line-height: 1.15 !important;
    font-weight: 400 !important;
}

.twofa-panel p {
    font-size: 16px !important;
    line-height: 1.45 !important;
}

.twofa-panel > p {
    padding: 16px;
    color: #24384d !important;
}

.client-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 0 12px 28px;
}

.tool-card {
    min-height: 172px;
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    justify-items: center;
    overflow: hidden;
    color: #24384d;
    background: #ffffff;
    border: 1px solid #d5dde5;
    border-radius: 3px;
    text-align: center;
    cursor: pointer;
}

.tool-card footer {
    width: 100%;
    min-height: 50px;
    display: grid;
    place-items: center;
    color: #0070b8;
    background: #f7f7f7;
    border-top: 1px solid #d5dde5;
    font-weight: 800;
}

.tool-card strong {
    color: inherit !important;
    font-size: 24px;
}

.tool-card.metric-card strong {
    color: #2f2f2f !important;
    font-family: Georgia, serif;
    font-size: 70px;
    line-height: 1;
    font-weight: 400;
}

.tool-card.metric-card span {
    margin-top: -22px;
    font-size: 24px;
}

.tool-card.search-card {
    align-content: start;
    padding: 14px;
    color: #ffffff;
    background: #df2e45;
    border-color: #df2e45;
}

.search-card h3 {
    width: 100%;
    margin: 0 0 12px;
    padding-bottom: 8px;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255,255,255,0.7);
}

.search-card form {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 48px;
}

.search-card input {
    min-height: 44px;
    border-radius: 3px 0 0 3px !important;
}

.search-card button {
    border: 0;
    background: #ffffff;
    font-size: 28px;
    cursor: pointer;
}

.search-card strong {
    margin-top: 18px;
    color: #ffffff !important;
}

.tool-card.color {
    color: #ffffff;
}

.tool-card.color footer {
    color: #0070b8;
    background: #ffffff;
}

.tool-card.green { background: #29a94a; border-color: #29a94a; }
.tool-card.dark { background: #303841; border-color: #303841; }
.tool-card.slate { background: #76818a; border-color: #76818a; }
.tool-card.blue { background: #1088f2; border-color: #1088f2; }
.tool-card.teal { background: #21a5b4; border-color: #21a5b4; }
.tool-card.yellow { background: #ffc107; border-color: #ffc107; }

.tool-symbol {
    display: block;
    color: inherit;
    font-size: 64px;
    line-height: 1;
}

.tool-icon.monitor {
    width: 86px;
    height: 56px;
    border: 8px solid currentColor;
    border-radius: 6px;
    position: relative;
}

.tool-icon.monitor::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: -22px;
    height: 8px;
    background: currentColor;
    box-shadow: 0 14px 0 currentColor;
}

.hidden-dashboard-tools {
    display: none !important;
}

@media (max-width: 980px) {
    .client-login,
    .client-dashboard,
    .client-tools-grid {
        grid-template-columns: 1fr;
    }

    .client-login {
        gap: 36px;
        padding-top: 48px !important;
    }
}

/* Final portal fixes: keep the SmartOne-like header and login layout stable. */
body .topbar {
    position: relative !important;
    width: 100% !important;
    min-height: 52px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    padding: 0 !important;
    background: #393534 !important;
    border-bottom: 3px solid #eeeeee !important;
}

body .topbar-inner {
    width: min(1180px, calc(100% - 40px)) !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 0 !important;
    margin: 0 auto !important;
}

body .topbar .brand {
    height: 52px !important;
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    margin: 0 46px 0 0 !important;
    text-decoration: none !important;
}

body .topbar .brand-mark {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
}

body .topbar .brand-mark span {
    border-top-width: 8px !important;
    border-bottom-width: 8px !important;
    border-left-width: 13px !important;
}

body .topbar .brand-copy strong {
    color: #8b8b8b !important;
    font-size: 14px !important;
    letter-spacing: 0.18em !important;
}

body .topbar .brand-copy small {
    margin-top: 4px !important;
    color: #ff7d00 !important;
    font-size: 8px !important;
    letter-spacing: 0.45em !important;
}

body .topbar .topnav {
    height: 52px !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 0 !important;
    margin: 0 !important;
}

body .topbar .topnav a,
body .topbar .nav-cta {
    min-width: 0 !important;
    min-height: 52px !important;
    height: 52px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 18px !important;
    color: #ffffff !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

body .topbar .topnav a:hover,
body .topbar .topnav a.active,
body .topbar .nav-cta:hover {
    color: #111111 !important;
    background: #ffffff !important;
}

body .language-picker {
    position: relative !important;
    height: 52px !important;
    display: inline-flex !important;
    align-items: stretch !important;
    margin-left: 18px !important;
    z-index: 30 !important;
}

body .language-current {
    min-height: 52px !important;
    height: 52px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 0 8px !important;
    color: #ffffff !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

body .language-current:hover,
body .language-picker.open .language-current {
    background: rgba(255, 255, 255, 0.08) !important;
}

body .language-menu {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    right: 0 !important;
    min-width: 132px !important;
    display: none !important;
    padding: 4px !important;
    background: #ffffff !important;
    border: 1px solid #cfd6de !important;
    border-radius: 3px !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16) !important;
}

body .language-picker.open .language-menu {
    display: grid !important;
}

body .language-menu button {
    min-height: 34px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 10px !important;
    color: #202020 !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 2px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: left !important;
}

body .client-login.page-section {
    width: min(1120px, calc(100% - 56px)) !important;
    min-height: 640px !important;
    display: grid !important;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 536px) !important;
    align-items: center !important;
    gap: 110px !important;
    margin: 0 auto !important;
    padding: 92px 0 !important;
    background: #ffffff !important;
}

body .login-intro {
    max-width: 560px !important;
}

body .login-intro h1 {
    display: inline !important;
    margin: 0 0 0 16px !important;
    color: #405a78 !important;
    font-size: 46px !important;
    line-height: 1.1 !important;
    font-weight: 400 !important;
}

body .login-intro h2 {
    margin: 16px 0 0 !important;
    color: #405a78 !important;
    font-size: 34px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
}

body .login-intro p {
    margin: 18px 0 0 !important;
    color: #405a78 !important;
    font-size: 23px !important;
    line-height: 1.35 !important;
}

body .client-login-card {
    width: 100% !important;
    max-width: 536px !important;
    display: grid !important;
    gap: 22px !important;
    padding: 16px !important;
    background: #ffffff !important;
    border: 1px solid #d5dde5 !important;
    border-radius: 6px !important;
}

body .client-login-card .form-message {
    min-height: 0 !important;
    margin: 0 !important;
}

@media (max-width: 980px) {
    body .topbar-inner {
        width: calc(100% - 24px) !important;
        justify-content: space-between !important;
    }

    body .topbar .brand {
        margin-right: 12px !important;
    }

    body .topbar .topnav {
        overflow-x: auto !important;
        justify-content: flex-start !important;
    }

    body .client-login.page-section {
        grid-template-columns: 1fr !important;
        gap: 36px !important;
        padding-top: 48px !important;
    }
}

/* Design polish layer: stable layout, cleaner cards, and responsive fixes. */
body {
    min-width: 320px;
    color: #263a50 !important;
    background: #f4f7fa !important;
}

body .site-shell {
    min-height: 100vh;
    overflow-x: clip !important;
    background: linear-gradient(180deg, #ffffff 0, #f6f9fc 360px, #eef3f7 100%) !important;
}

body .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    min-height: 58px !important;
    background: #2f3439 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body .topbar-inner {
    min-height: 58px !important;
    justify-content: space-between !important;
}

body .topbar .brand {
    height: 58px !important;
    margin-right: 28px !important;
}

body .topbar .topnav {
    height: 58px !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
    min-width: 0 !important;
}

body .topbar .topnav a,
body .topbar .nav-cta,
body .language-current {
    min-height: 58px !important;
    height: 58px !important;
}

body .topbar .topnav a,
body .topbar .nav-cta {
    padding: 0 14px !important;
    flex: 0 0 auto !important;
    transition: background 160ms ease, color 160ms ease !important;
}

.notice-band {
    padding: 22px 24px !important;
    background: #fff3c4 !important;
    border-bottom: 1px solid #eadb9c !important;
}

.home-showcase {
    min-height: clamp(280px, 38vw, 390px) !important;
}

.tv-outline {
    width: min(430px, calc(100vw - 48px)) !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    border-width: 4px !important;
    border-color: #e33838 !important;
}

.tv-outline::before,
.tv-outline::after {
    width: 34% !important;
    bottom: -18px !important;
}

.tv-outline::before {
    left: 22% !important;
}

.tv-outline::after {
    right: 22% !important;
}

.hero-brand {
    transform: scale(clamp(1.08, 4vw, 1.55)) !important;
}

.home-actions-row,
.form-actions,
.panel-actions {
    flex-wrap: wrap !important;
}

.feature-section,
.page-hero,
.page-section,
.portal-section,
.steps-section,
.faq-section,
.footer,
.panel-layout,
.auth-layout,
.account-strip,
.user-panel-grid,
body .client-login.page-section,
.client-dashboard {
    width: min(1180px, calc(100% - 40px)) !important;
}

.page-hero {
    padding-top: 48px !important;
}

.page-hero h1,
.auth-copy h1,
h1 {
    max-width: 880px !important;
    font-size: clamp(34px, 5vw, 58px) !important;
    line-height: 1.08 !important;
}

h2 {
    font-size: clamp(28px, 4vw, 44px) !important;
    line-height: 1.12 !important;
}

.feature-grid,
.steps,
.dashboard-cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

.portal-grid,
.panel-layout,
.user-panel-grid,
.account-strip {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)) !important;
}

.form-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)) !important;
}

.panel,
.feature-card,
.steps article,
.faq-grid details,
.account-card,
.dashboard-cards article,
.device-state,
.client-box,
.dashboard-main,
.client-login-card,
.tool-card,
.twofa-panel {
    border-radius: 6px !important;
}

.panel,
.client-box,
.dashboard-main,
.client-login-card,
.tool-card,
.feature-card,
.steps article,
.faq-grid details {
    box-shadow: 0 10px 24px rgba(22, 40, 58, 0.07) !important;
}

.button,
.nav-cta,
.client-login-button,
.client-box button,
.search-card button {
    min-width: max-content;
}

.button:focus-visible,
.nav-cta:focus-visible,
.client-login-button:focus-visible,
.client-box button:focus-visible,
.tool-card:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(16, 136, 242, 0.22) !important;
    outline-offset: 2px !important;
}

.client-dashboard {
    grid-template-columns: minmax(230px, 270px) minmax(0, 1fr) !important;
    gap: 20px !important;
    padding-top: 22px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.dashboard-main {
    background: #ffffff !important;
}

.dashboard-title,
.client-box header {
    background: #38404a !important;
}

.twofa-panel {
    border-color: #d83d4e !important;
}

.twofa-panel div {
    background: #d83d4e !important;
}

.client-tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)) !important;
    gap: 14px !important;
    padding: 0 12px 24px !important;
}

.client-box-body a,
.client-box-body p,
.client-box-body strong {
    overflow-wrap: anywhere;
}

.tool-card {
    min-height: 150px !important;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease !important;
}

.tool-card:hover {
    transform: translateY(-2px) !important;
    border-color: #aeb9c5 !important;
    box-shadow: 0 14px 30px rgba(22, 40, 58, 0.12) !important;
}

.tool-card footer {
    min-height: 44px !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
}

.tool-card strong {
    max-width: 100%;
    padding: 0 10px;
    overflow-wrap: anywhere;
    font-size: clamp(18px, 2vw, 24px) !important;
    line-height: 1.12 !important;
}

.tool-card.metric-card strong {
    font-size: clamp(48px, 6vw, 64px) !important;
}

.tool-card.metric-card[data-action="add-funds"] strong {
    font-size: 0 !important;
}

.tool-card.metric-card[data-action="add-funds"] strong::before {
    content: "EUR 0.00";
    font-family: Georgia, serif;
    font-size: clamp(30px, 4vw, 42px);
}

.tool-card.metric-card span {
    margin-top: -10px !important;
    padding: 0 10px;
    font-size: clamp(17px, 2vw, 22px) !important;
    line-height: 1.15 !important;
}

.tool-symbol {
    min-height: 42px;
    display: grid !important;
    place-items: center;
    padding: 0 12px;
    font-size: 0 !important;
}

.tool-symbol::before {
    min-width: 42px;
    min-height: 42px;
    display: grid;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 999px;
    font-size: 17px;
    line-height: 1;
    font-weight: 900;
}

[data-action="gift-codes"] .tool-symbol::before { content: "G"; }
[data-action="notifications"] .tool-symbol::before { content: "!"; }
[data-action="preferences"] .tool-symbol::before { content: "SET"; font-size: 13px; }
.tool-card.color.blue .tool-symbol::before { content: "+"; font-size: 28px; }
[data-action="transfer-license"] .tool-symbol::before { content: "TO"; font-size: 13px; }
[data-action="mac-licenses"] .tool-symbol::before { content: "MAC"; font-size: 12px; }
[data-action="change-dns"] .tool-symbol::before { content: "DNS"; font-size: 12px; }
[data-action="change-port"] .tool-symbol::before { content: "PORT"; font-size: 11px; }
[data-action="transactions"] .tool-symbol::before { content: "PAY"; font-size: 12px; }
[data-action="downloads"] .tool-symbol::before { content: "APP"; font-size: 12px; }

.search-card form {
    grid-template-columns: minmax(0, 1fr) 48px !important;
}

.search-card button {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 48px;
    color: #24384d;
}

.search-card button {
    font-size: 0 !important;
}

.search-card button::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 3px solid currentColor;
    border-radius: 999px;
}

.search-card button::after {
    content: "";
    width: 9px;
    height: 3px;
    margin-left: 17px;
    margin-top: 17px;
    position: absolute;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: center;
}

.inline-field {
    grid-template-columns: minmax(0, 1fr) auto !important;
}

input {
    min-width: 0;
}

.client-login-links button,
.client-login-links a {
    padding: 12px !important;
    min-height: 58px !important;
    font-size: clamp(16px, 2.2vw, 21px) !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

@media (max-width: 1120px) {
    body .topbar-inner {
        width: calc(100% - 24px) !important;
    }

    body .topbar .brand {
        margin-right: 12px !important;
    }

    body .topbar .topnav {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        scrollbar-width: thin;
    }

    body .language-picker {
        margin-left: 10px !important;
    }
}

@media (max-width: 760px) {
    .feature-section,
    .page-hero,
    .page-section,
    .portal-section,
    .steps-section,
    .faq-section,
    .footer,
    .panel-layout,
    .auth-layout,
    .account-strip,
    .user-panel-grid,
    body .client-login.page-section,
    .client-dashboard {
        width: calc(100% - 24px) !important;
    }

    body .topbar {
        position: relative !important;
    }

    body .topbar-inner {
        min-height: auto !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        padding: 8px 0 !important;
        row-gap: 6px !important;
    }

    body .topbar .brand {
        height: 44px !important;
    }

    body .topbar .topnav {
        order: 3;
        width: 100%;
        height: auto !important;
        padding-bottom: 2px !important;
        gap: 0 !important;
    }

    body .topbar .topnav a,
    body .topbar .nav-cta {
        min-height: 42px !important;
        height: 42px !important;
        padding: 0 12px !important;
    }

    body .language-picker,
    body .language-current {
        height: 44px !important;
        min-height: 44px !important;
    }

    .notice-band {
        padding: 16px 14px !important;
        font-size: 14px !important;
    }

    .home-actions-row {
        padding: 28px 14px 46px !important;
    }

    .home-actions-row .button,
    .form-actions .button,
    .panel-actions .button {
        width: 100%;
    }

    .inline-field {
        grid-template-columns: 1fr !important;
    }

    .client-dashboard {
        grid-template-columns: minmax(0, 1fr) !important;
        justify-items: stretch !important;
    }

    .client-dashboard > *,
    .client-sidebar,
    .client-box,
    .dashboard-main {
        width: 100% !important;
        min-width: 0 !important;
    }

    body .client-login.page-section {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 42px 0 64px !important;
    }

    body .login-intro h1 {
        display: block !important;
        margin: 16px 0 0 !important;
        font-size: 38px !important;
    }

    body .login-intro h2 {
        font-size: 28px !important;
    }

    body .login-intro p {
        font-size: 18px !important;
    }

    .client-tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    }
}

@media (max-width: 460px) {
    .client-tools-grid,
    .feature-grid,
    .steps {
        grid-template-columns: 1fr !important;
    }

    .client-login-links {
        grid-template-columns: 1fr !important;
    }

    .client-login-links button + button {
        border-top: 1px solid #d5dde5 !important;
    }

    .tool-card {
        min-height: 132px !important;
    }
}

/* Login refresh with real Turnstile widget. */
body[data-auth-page="true"] .site-shell {
    background:
        linear-gradient(120deg, rgba(47, 52, 57, 0.04), transparent 42%),
        linear-gradient(180deg, #ffffff 0, #f7fafc 100%) !important;
}

body[data-auth-page="true"] .client-login.page-section {
    width: min(1120px, calc(100% - 48px)) !important;
    min-height: calc(100vh - 184px) !important;
    grid-template-columns: minmax(300px, 0.82fr) minmax(380px, 520px) !important;
    gap: clamp(44px, 7vw, 92px) !important;
    align-items: center !important;
    padding: clamp(56px, 7vw, 86px) 0 !important;
    background: transparent !important;
}

body[data-auth-page="true"] .login-intro {
    position: relative;
    padding: 34px 0;
}

body[data-auth-page="true"] .login-intro::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 0;
    width: 5px;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, #2f3439, #ff7d00);
}

body[data-auth-page="true"] .login-lock {
    width: 54px;
    height: 42px;
    margin-bottom: 22px;
    vertical-align: 0;
    background: #304963;
}

body[data-auth-page="true"] .login-lock::before {
    left: 11px;
    top: -27px;
    width: 32px;
    height: 34px;
    border-color: #304963;
}

body[data-auth-page="true"] .login-intro h1 {
    display: block !important;
    margin: 0 !important;
    color: #263a50 !important;
    font-size: clamp(46px, 5vw, 68px) !important;
    line-height: 1.02 !important;
    font-weight: 500 !important;
}

body[data-auth-page="true"] .login-intro h2 {
    margin-top: 22px !important;
    color: #405a78 !important;
    font-size: clamp(30px, 3vw, 42px) !important;
}

body[data-auth-page="true"] .login-intro p {
    max-width: 520px;
    color: #52687e !important;
    font-size: clamp(18px, 2vw, 24px) !important;
}

body[data-auth-page="true"] .login-intro hr {
    max-width: 520px;
}

body[data-auth-page="true"] .client-login-card {
    max-width: 520px !important;
    gap: 18px !important;
    padding: 26px !important;
    border: 1px solid #d8e2ec !important;
    border-radius: 10px !important;
    box-shadow: 0 24px 70px rgba(36, 56, 77, 0.13) !important;
}

body[data-auth-page="true"] .client-login-card label {
    gap: 9px !important;
    color: #203850 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
}

body[data-auth-page="true"] .client-login-card input:not([type="checkbox"]) {
    min-height: 56px !important;
    padding: 0 18px !important;
    font-size: 21px !important;
    border-radius: 7px !important;
}

body[data-auth-page="true"] .remember-line {
    margin: 8px 0 2px;
}

body[data-auth-page="true"] .remember-line input {
    width: 20px;
    height: 20px;
    accent-color: #29a94a;
}

body[data-auth-page="true"] .turnstile-wrap {
    min-height: 94px;
    display: grid;
    align-items: start;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 0 4px !important;
    background: transparent !important;
    border: 0 !important;
}

body[data-auth-page="true"] .cf-turnstile {
    min-height: 65px;
}

body[data-auth-page="true"] .turnstile-note {
    margin: 0 !important;
    color: #6f7d8b !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

body[data-auth-page="true"] .client-login-button {
    min-height: 58px;
    border-radius: 7px;
    background: #24a849;
    font-weight: 700;
    transition: background 160ms ease, transform 160ms ease;
}

body[data-auth-page="true"] .client-login-button:hover {
    background: #1f963f;
    transform: translateY(-1px);
}

body[data-auth-page="true"] .client-login-links {
    margin: 8px -26px -26px !important;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

@media (max-width: 820px) {
    body[data-auth-page="true"] .client-login.page-section {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 36px 0 60px !important;
    }

    body[data-auth-page="true"] .login-intro {
        padding: 18px 0 8px;
    }

    body[data-auth-page="true"] .login-intro::before {
        display: none;
    }

    body[data-auth-page="true"] .login-lock {
        width: 44px;
        height: 34px;
    }

    body[data-auth-page="true"] .login-lock::before {
        left: 9px;
        top: -22px;
        width: 26px;
        height: 28px;
    }

    body[data-auth-page="true"] .client-login-card {
        max-width: none !important;
        padding: 18px !important;
    }

    body[data-auth-page="true"] .client-login-links {
        margin: 4px -18px -18px !important;
    }
}

/* Match the SmartOne-style login reference. */
body[data-auth-page="true"] {
    background: #ffffff !important;
}

body[data-auth-page="true"] .site-shell {
    min-height: 100vh;
    background: #ffffff !important;
}

body[data-auth-page="true"] .client-login.page-section {
    width: min(1228px, calc(100% - 64px)) !important;
    min-height: calc(100vh - 184px) !important;
    grid-template-columns: minmax(420px, 1fr) 536px !important;
    gap: clamp(72px, 11vw, 170px) !important;
    align-items: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body[data-auth-page="true"] .login-intro {
    align-self: center;
    max-width: 536px !important;
    padding: 0 !important;
    color: #405a78 !important;
}

body[data-auth-page="true"] .login-intro::before {
    display: none !important;
}

body[data-auth-page="true"] .login-lock {
    display: inline-block;
    width: 40px !important;
    height: 31px !important;
    margin: 0 13px 0 0 !important;
    vertical-align: -2px !important;
    border-radius: 5px !important;
    background: #405a78 !important;
}

body[data-auth-page="true"] .login-lock::before {
    left: 8px !important;
    top: -20px !important;
    width: 24px !important;
    height: 27px !important;
    border-width: 6px !important;
    border-color: #405a78 !important;
    border-bottom: 0 !important;
    border-radius: 18px 18px 0 0 !important;
}

body[data-auth-page="true"] .login-intro h1 {
    display: inline !important;
    margin: 0 !important;
    color: #405a78 !important;
    font-size: 42px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}

body[data-auth-page="true"] .login-intro h2 {
    margin: 16px 0 0 !important;
    color: #405a78 !important;
    font-size: 34px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
}

body[data-auth-page="true"] .login-intro p {
    margin: 18px 0 0 !important;
    max-width: none !important;
    color: #405a78 !important;
    font-size: 23px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
}

body[data-auth-page="true"] .login-intro hr {
    max-width: none !important;
    margin: 30px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid #d6dde4 !important;
}

body[data-auth-page="true"] .client-login-card {
    width: 536px !important;
    max-width: 536px !important;
    gap: 22px !important;
    padding: 16px !important;
    color: #304963 !important;
    background: #ffffff !important;
    border: 1px solid #d5dde5 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

body[data-auth-page="true"] .client-login-card label {
    gap: 10px !important;
    color: #344960 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

body[data-auth-page="true"] .client-login-card input:not([type="checkbox"]) {
    min-height: 58px !important;
    padding: 0 18px !important;
    color: #405a78 !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    background: #ffffff !important;
    border: 1px solid #c9d3dd !important;
    border-radius: 5px !important;
}

body[data-auth-page="true"] .remember-line {
    margin: 0 !important;
    gap: 8px !important;
}

body[data-auth-page="true"] .remember-line input {
    width: 20px !important;
    height: 20px !important;
}

body[data-auth-page="true"] .remember-line span {
    color: #344960 !important;
    font-size: 16px !important;
}

body[data-auth-page="true"] .turnstile-wrap {
    min-height: 98px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    overflow: hidden;
    background: #f7f7f7 !important;
    border: 1px solid #d8d8d8 !important;
}

body[data-auth-page="true"] .cf-turnstile {
    width: 100%;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body[data-auth-page="true"] .turnstile-note {
    display: none !important;
}

body[data-auth-page="true"] .client-login-button {
    min-height: 54px !important;
    color: #ffffff !important;
    background: #29a94a !important;
    border: 0 !important;
    border-radius: 4px !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    transform: none !important;
}

body[data-auth-page="true"] .client-login-button:hover {
    background: #29a94a !important;
    transform: none !important;
}

body[data-auth-page="true"] .client-login-card .form-message {
    margin: 0 !important;
}

body[data-auth-page="true"] .client-login-links {
    margin: -16px -16px -16px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
    border-top: 1px solid #d5dde5 !important;
    border-radius: 0 0 6px 6px !important;
}

body[data-auth-page="true"] .client-login-links button,
body[data-auth-page="true"] .client-login-links a {
    min-height: 72px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 10px !important;
    color: #0070b8 !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 23px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
}

body[data-auth-page="true"] .client-login-links a {
    grid-column: 1 / -1 !important;
    border-top: 1px solid #d5dde5 !important;
}

@media (max-width: 980px) {
    body[data-auth-page="true"] .client-login.page-section {
        width: min(536px, calc(100% - 32px)) !important;
        min-height: auto !important;
        grid-template-columns: 1fr !important;
        gap: 34px !important;
        padding: 48px 0 72px !important;
    }

    body[data-auth-page="true"] .login-intro {
        width: 100% !important;
    }

    body[data-auth-page="true"] .client-login-card {
        width: 100% !important;
        max-width: none !important;
    }
}

@media (max-width: 520px) {
    body[data-auth-page="true"] .login-intro h1 {
        display: block !important;
        margin-top: 14px !important;
        font-size: 40px !important;
        line-height: 1.2 !important;
    }

    body[data-auth-page="true"] .login-intro h2 {
        font-size: 30px !important;
    }

    body[data-auth-page="true"] .login-intro p {
        font-size: 19px !important;
    }

    body[data-auth-page="true"] .client-login-links {
        grid-template-columns: 1fr !important;
    }

    body[data-auth-page="true"] .client-login-links button + button {
        border-top: 1px solid #d5dde5 !important;
    }
}

body[data-auth-page="true"] .client-login.page-section {
    align-items: start !important;
    padding-top: clamp(72px, 14vh, 118px) !important;
    padding-bottom: 14px !important;
}

body[data-auth-page="true"] .client-login-card {
    gap: 8px !important;
}

body[data-auth-page="true"] .client-login-card input:not([type="checkbox"]) {
    min-height: 56px !important;
}

body[data-auth-page="true"] .client-login-links button,
body[data-auth-page="true"] .client-login-links a {
    min-height: 68px !important;
}

body[data-auth-page="true"] .client-login-card .form-message:empty {
    display: none !important;
}

body[data-auth-page="true"] .client-login-links {
    margin-top: 0 !important;
}

body[data-auth-page="true"] .login-intro {
    align-self: start !important;
}

@media (max-width: 980px) {
    body[data-auth-page="true"] .client-login.page-section {
        padding-top: 48px !important;
        padding-bottom: 72px !important;
    }
}

/* Exact SmartOne reference login view. */
body[data-auth-page="true"] .topbar,
body[data-auth-page="true"] .notice-band {
    display: revert !important;
}

body[data-auth-page="true"] .client-login.page-section {
    width: min(1264px, calc(100% - 64px)) !important;
    min-height: calc(100vh - 184px) !important;
    grid-template-columns: minmax(520px, 1fr) 536px !important;
    gap: clamp(72px, 11.5vw, 170px) !important;
    align-items: start !important;
    padding-top: clamp(64px, 10vh, 92px) !important;
    padding-bottom: 24px !important;
}

body[data-auth-page="true"] .login-intro h1 {
    display: inline !important;
    margin: 0 !important;
    font-size: 42px !important;
    line-height: 1.2 !important;
}

body[data-auth-page="true"] .client-login-card {
    gap: 14px !important;
}

body[data-auth-page="true"] .turnstile-wrap {
    width: 450px !important;
    min-height: 98px !important;
    justify-content: flex-start !important;
}

body[data-auth-page="true"] .client-login-button {
    margin-top: 8px !important;
}

body[data-auth-page="true"] .client-login-links {
    grid-template-columns: 1fr 1fr !important;
}

body[data-auth-page="true"] .client-login-links .create-account-link {
    display: none !important;
}

body[data-auth-page="true"] .client-login-links button {
    min-height: 72px !important;
}

@media (max-width: 980px) {
    body[data-auth-page="true"] .client-login.page-section {
        width: min(536px, calc(100% - 32px)) !important;
        min-height: auto !important;
        grid-template-columns: 1fr !important;
        gap: 34px !important;
        padding-top: 48px !important;
        padding-bottom: 72px !important;
    }

    body[data-auth-page="true"] .turnstile-wrap {
        width: 100% !important;
    }
}

/* Final login scale correction. */
body[data-auth-page="true"] .login-intro {
    max-width: 520px !important;
}

body[data-auth-page="true"] .login-lock {
    position: relative !important;
    width: 34px !important;
    height: 27px !important;
    margin: 0 12px 0 0 !important;
    vertical-align: -1px !important;
    border-radius: 4px !important;
    background: #405a78 !important;
}

body[data-auth-page="true"] .login-lock::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: -18px !important;
    width: 22px !important;
    height: 24px !important;
    box-sizing: border-box !important;
    border: 5px solid #405a78 !important;
    border-bottom: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    transform: translateX(-50%) !important;
}

body[data-auth-page="true"] .login-intro h1 {
    font-size: 36px !important;
    line-height: 1.18 !important;
}

body[data-auth-page="true"] .login-intro h2 {
    margin-top: 22px !important;
    font-size: 30px !important;
    line-height: 1.2 !important;
}

body[data-auth-page="true"] .login-intro p {
    margin-top: 18px !important;
    font-size: 20px !important;
    line-height: 1.35 !important;
}

body[data-auth-page="true"] .login-intro hr {
    margin-top: 28px !important;
}

body[data-auth-page="true"] .client-login-links .create-account-link {
    display: grid !important;
}

/* Login update adapted from the provided SmartOne theme, scoped only here. */
body[data-auth-page="true"] {
    background: #f4f7f9 !important;
}

body[data-auth-page="true"] .site-shell {
    background: #f4f7f9 !important;
}

body[data-auth-page="true"] .topbar {
    display: flex !important;
}

body[data-auth-page="true"] .notice-band {
    display: block !important;
}

body[data-auth-page="true"] .client-login.page-section {
    width: 100% !important;
    max-width: 1180px !important;
    min-height: calc(100vh - 120px) !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 480px) !important;
    align-items: center !important;
    gap: clamp(48px, 8vw, 110px) !important;
    padding: 60px 24px 100px !important;
    box-sizing: border-box !important;
}

body[data-auth-page="true"] .login-intro {
    width: 100% !important;
    max-width: 480px !important;
    align-self: center !important;
    padding: 0 !important;
    color: #24384d !important;
}

body[data-auth-page="true"] .login-intro::before {
    display: none !important;
}

body[data-auth-page="true"] .login-lock {
    position: relative !important;
    display: inline-block !important;
    width: 34px !important;
    height: 27px !important;
    margin: 0 12px 0 0 !important;
    vertical-align: -1px !important;
    border-radius: 4px !important;
    background: #405a78 !important;
}

body[data-auth-page="true"] .login-lock::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: -18px !important;
    width: 22px !important;
    height: 24px !important;
    box-sizing: border-box !important;
    border: 5px solid #405a78 !important;
    border-bottom: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    transform: translateX(-50%) !important;
}

body[data-auth-page="true"] .login-intro h1 {
    display: inline !important;
    margin: 0 !important;
    color: #24384d !important;
    font-size: 36px !important;
    line-height: 1.18 !important;
    letter-spacing: -0.5px !important;
    font-weight: 800 !important;
}

body[data-auth-page="true"] .login-intro h2 {
    margin: 22px 0 0 !important;
    color: #24384d !important;
    font-size: 30px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
}

body[data-auth-page="true"] .login-intro p {
    margin: 18px 0 0 !important;
    color: #52687e !important;
    font-size: 20px !important;
    line-height: 1.35 !important;
}

body[data-auth-page="true"] .login-intro hr {
    margin: 28px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid #d6dde4 !important;
}

body[data-auth-page="true"] .client-login-card {
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    display: grid !important;
    gap: 18px !important;
    padding: 36px !important;
    color: #23384d !important;
    background: #ffffff !important;
    border: 1px solid #d5dde5 !important;
    border-radius: 4px !important;
    box-shadow: 0 8px 24px rgba(36, 56, 77, 0.06) !important;
    box-sizing: border-box !important;
}

body[data-auth-page="true"] .client-login-card label {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    color: #24384d !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: left !important;
}

body[data-auth-page="true"] .client-login-card input:not([type="checkbox"]) {
    width: 100% !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    color: #24384d !important;
    background: #ffffff !important;
    border: 1px solid #cbd5df !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

body[data-auth-page="true"] .client-login-card input:not([type="checkbox"]):focus {
    border-color: #ff7d00 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 125, 0, 0.15) !important;
}

body[data-auth-page="true"] .client-login-card .remember-line {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin: 0 !important;
}

body[data-auth-page="true"] .client-login-card .remember-line input {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    flex: 0 0 18px !important;
}

body[data-auth-page="true"] .client-login-card .remember-line span {
    color: #24384d !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

body[data-auth-page="true"] .turnstile-wrap {
    width: 100% !important;
    min-height: 78px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

body[data-auth-page="true"] .turnstile-note {
    color: #7f94a8 !important;
    font-size: 11px !important;
    margin-top: 6px !important;
    text-align: center !important;
}

body[data-auth-page="true"] .client-login-button {
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    color: #ffffff !important;
    background: #24384d !important;
    border: 0 !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

body[data-auth-page="true"] .client-login-button:hover {
    background: #ff7d00 !important;
}

body[data-auth-page="true"] .client-login-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 6px 0 0 !important;
    padding-top: 18px !important;
    background: transparent !important;
    border-top: 1px solid #eef2f6 !important;
}

body[data-auth-page="true"] .client-login-links button,
body[data-auth-page="true"] .client-login-links a {
    min-height: 0 !important;
    padding: 0 !important;
    color: #52687e !important;
    background: none !important;
    border: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

body[data-auth-page="true"] .client-login-links button:hover,
body[data-auth-page="true"] .client-login-links a:hover {
    color: #ff7d00 !important;
    text-decoration: underline !important;
}

body[data-auth-page="true"] .client-login-links .create-account-link {
    display: inline !important;
}

body[data-auth-page="true"] .form-message {
    margin: 0 !important;
    font-size: 14px !important;
    text-align: center !important;
}

@media (max-width: 768px) {
    body[data-auth-page="true"] .client-login.page-section {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        padding: 40px 16px 60px !important;
    }

    body[data-auth-page="true"] .client-login-card {
        padding: 24px !important;
    }
}

/* Dashboard cards: SmartOne-style module tiles, scoped to the client panel. */
.client-dashboard .client-tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)) !important;
    gap: 14px !important;
    padding: 0 12px 28px !important;
    align-items: stretch !important;
}

.client-dashboard .tool-card {
    min-height: 150px !important;
    display: grid !important;
    grid-template-rows: minmax(106px, 1fr) 44px !important;
    align-items: center !important;
    justify-items: center !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: #122f49 !important;
    background: #ffffff !important;
    border: 1px solid #d5dde5 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease !important;
}

.client-dashboard .tool-card:hover {
    transform: translateY(-1px) !important;
    border-color: #b8c5d1 !important;
    box-shadow: 0 8px 18px rgba(22, 40, 58, 0.08) !important;
}

.client-dashboard .tool-card footer {
    align-self: end !important;
    width: 100% !important;
    min-height: 44px !important;
    display: grid !important;
    place-items: center !important;
    padding: 7px 10px !important;
    color: #0070b8 !important;
    background: #f7f7f7 !important;
    border-top: 1px solid #d5dde5 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    box-sizing: border-box !important;
}

.client-dashboard .tool-card strong {
    align-self: end !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 10px 8px !important;
    color: inherit !important;
    font-size: 24px !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
    overflow-wrap: anywhere !important;
}

.client-dashboard .tool-card.metric-card {
    grid-template-rows: minmax(80px, 1fr) 28px 44px !important;
}

.client-dashboard .tool-card.metric-card strong {
    align-self: end !important;
    padding: 0 10px !important;
    color: #2b2622 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 58px !important;
    line-height: 0.95 !important;
    font-weight: 700 !important;
}

.client-dashboard .tool-card.metric-card span {
    align-self: end !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 8px !important;
    color: #122f49 !important;
    font-size: 21px !important;
    line-height: 1.05 !important;
    box-sizing: border-box !important;
}

.client-dashboard .tool-card.metric-card[data-action="add-funds"] strong {
    font-size: 0 !important;
}

.client-dashboard .tool-card.metric-card[data-action="add-funds"] strong::before {
    content: "EUR\A 0.00" !important;
    white-space: pre !important;
    color: #2b2622 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 42px !important;
    line-height: 1.18 !important;
    font-weight: 700 !important;
}

.client-dashboard .tool-card.color {
    color: #ffffff !important;
}

.client-dashboard .tool-card.color footer {
    color: #0070b8 !important;
    background: #ffffff !important;
    border-top: 0 !important;
}

.client-dashboard .tool-card.green { background: #29a94a !important; border-color: #29a94a !important; }
.client-dashboard .tool-card.dark { background: #303841 !important; border-color: #303841 !important; }
.client-dashboard .tool-card.slate { background: #76818a !important; border-color: #76818a !important; }
.client-dashboard .tool-card.blue { background: #1088f2 !important; border-color: #1088f2 !important; }
.client-dashboard .tool-card.teal { background: #21a5b4 !important; border-color: #21a5b4 !important; }
.client-dashboard .tool-card.yellow { background: #ffc107 !important; border-color: #ffc107 !important; }

.client-dashboard .tool-symbol {
    align-self: end !important;
    margin: 0 0 8px !important;
}

.client-dashboard .tool-symbol::before {
    width: 44px !important;
    height: 44px !important;
    color: currentColor !important;
    border: 2px solid currentColor !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

.client-dashboard .tool-card:not(.color) .tool-symbol::before {
    color: #122f49 !important;
    border-color: #122f49 !important;
}

.client-dashboard .tool-card .tool-icon.monitor {
    align-self: end !important;
    width: 66px !important;
    height: 46px !important;
    margin: 0 0 8px !important;
    border-color: currentColor !important;
}

.client-dashboard .tool-card .tool-icon.monitor::after {
    background: currentColor !important;
}

.client-dashboard .search-card {
    min-height: 150px !important;
    display: grid !important;
    grid-template-rows: auto auto 1fr !important;
    align-content: start !important;
    justify-items: stretch !important;
    gap: 10px !important;
    padding: 14px !important;
    color: #ffffff !important;
    background: #df2e45 !important;
    border-color: #df2e45 !important;
}

.client-dashboard .search-card h3 {
    width: 100% !important;
    margin: 0 !important;
    padding: 4px 0 9px !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.75) !important;
    font-size: 22px !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
    text-align: center !important;
}

.client-dashboard .search-card form {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 46px !important;
}

.client-dashboard .search-card input {
    min-height: 44px !important;
    padding: 0 12px !important;
    color: #24384d !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 2px 0 0 2px !important;
    font-size: 14px !important;
}

.client-dashboard .search-card button {
    min-width: 46px !important;
    min-height: 44px !important;
    color: #122f49 !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 0 2px 2px 0 !important;
}

.client-dashboard .search-card strong {
    align-self: center !important;
    padding: 0 4px !important;
    color: #ffffff !important;
    font-size: 24px !important;
    line-height: 1.08 !important;
    font-weight: 900 !important;
}

.user-devices-panel {
    margin-bottom: 22px !important;
}

.device-row .icon-action.danger {
    color: #ffffff !important;
    background: #dc3545 !important;
    border-color: #dc3545 !important;
}

.device-row .icon-action.danger:hover {
    background: #c82333 !important;
    border-color: #c82333 !important;
}

/* Playlist Manager table view, matching the compact SmartOne structure. */
body[data-manager-page="true"] .portal-section.playlist-manager-page {
    width: min(740px, calc(100% - 56px)) !important;
    padding-top: 12px !important;
}

.manager-searchbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    margin: 0 0 12px;
}

.manager-searchbar input {
    min-height: 25px !important;
    height: 25px !important;
    padding: 0 8px !important;
    border: 1px solid #cfd6de !important;
    border-radius: 2px 0 0 2px !important;
    font-size: 11px !important;
    box-shadow: none !important;
}

.manager-searchbar button {
    position: relative;
    min-width: 28px;
    min-height: 25px;
    font-size: 0;
    background: #ffffff;
    border: 1px solid #cfd6de;
    border-left: 0;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
}

.manager-searchbar button::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 6px;
    width: 8px;
    height: 8px;
    border: 2px solid #111111;
    border-radius: 50%;
}

.manager-searchbar button::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 16px;
    width: 7px;
    height: 2px;
    background: #111111;
    transform: rotate(45deg);
    transform-origin: left center;
}

.manager-status-tabs {
    display: grid;
    grid-template-columns: 86px repeat(4, 1fr);
    margin-bottom: 16px;
    border: 1px solid #d5d9de;
    border-radius: 2px;
    overflow: hidden;
}

.manager-status-tabs button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    color: #24415c;
    background: #ffffff;
    border: 0;
    border-right: 1px solid #d5d9de;
    font-size: 11px;
    text-align: left;
    cursor: pointer;
}

.manager-status-tabs button:last-child {
    border-right: 0;
}

.manager-status-tabs button:hover {
    background: #eeeeee;
}

.manager-status-tabs button.active {
    background: #d3d5d7;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.active { background: #13b64b; }
.status-dot.pending { background: #0d6efd; }
.status-dot.trial { background: #ffc107; }
.status-dot.expired { background: #dc3545; }

.manager-table-panel {
    margin-bottom: 18px;
    border: 1px solid #d6dce2;
    border-radius: 2px;
    background: #ffffff;
}

.manager-table-panel > header {
    min-height: 24px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: #ffffff;
    background: #4f4f4f;
    font-size: 12px;
}

.manager-table-meta {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    color: #4d6478;
    font-size: 10px;
}

.manager-table-meta > div {
    margin-left: auto;
    display: inline-flex;
    gap: 4px;
}

.manager-table-meta strong {
    display: inline-grid;
    place-items: center;
    min-width: 15px;
    min-height: 10px;
    padding: 0 3px;
    color: #4d6478;
    background: #edf1f5;
    border: 1px solid #cfd6de;
    border-radius: 999px;
    font-size: 8px;
}

.table-action {
    min-height: 25px;
    padding: 0 9px;
    color: #1d2c3c;
    background: #ffffff;
    border: 1px solid #d5d9de;
    border-radius: 2px;
    font-size: 12px;
    cursor: pointer;
}

.table-action:hover {
    background: #eeeeee;
}

.manager-table-wrap {
    overflow-x: auto;
    padding: 0 8px 8px;
}

.manager-playlist-table {
    width: 100%;
    border-collapse: collapse;
    color: #0d2438;
    font-size: 11px;
}

.manager-playlist-table th,
.manager-playlist-table td {
    min-height: 26px;
    padding: 4px 5px;
    border: 1px solid #dfe3e7;
    text-align: left;
    white-space: nowrap;
}

.manager-playlist-table th {
    color: #0070b8;
    background: #f7f7f7;
    font-size: 9px;
    font-weight: 800;
}

.manager-playlist-table tbody tr:nth-child(even) {
    background: #f7f7f7;
}

.manager-playlist-table tbody tr:hover {
    background: #eeeeee;
}

.manager-playlist-table tbody tr.selected {
    background: #fff8db;
}

.row-info {
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #ffffff;
    background: #005baa;
    border: 1px solid #1e2b36;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.mac-cell {
    font-family: Arial, sans-serif;
}

.mac-state::before {
    display: inline-block;
    width: 14px;
    margin-right: 3px;
    font-weight: 900;
}

.mac-state.active::before,
.mac-state.trial::before {
    content: "✓";
    color: #13b64b;
}

.mac-state.pending::before {
    content: "+";
    color: #0d6efd;
}

.mac-state.expired::before {
    content: "○";
    color: #dc3545;
}

.manager-options {
    display: flex;
    gap: 2px;
}

.manager-options .mini {
    min-width: 21px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    color: transparent;
    font-size: 0;
    cursor: pointer;
}

.manager-options .mini::before {
    color: #111111;
    font-size: 11px;
    font-weight: 900;
}

.manager-options .view { background: #ffffff; border: 1px solid #d5d9de; }
.manager-options .view::before { content: "◉"; }
.manager-options .edit { background: #ffc107; }
.manager-options .edit::before { content: "✎"; }
.manager-options .delete { background: #dc3545; }
.manager-options .delete::before { content: "■"; color: #ffffff; }
.manager-options .add { background: #0d6efd; }
.manager-options .add::before { content: "+"; color: #ffffff; font-size: 14px; }

.manager-empty {
    padding: 14px;
}

body[data-manager-page="true"] .manager-editor,
body[data-manager-page="true"] .manager-utility {
    margin-top: 18px !important;
}

body[data-manager-page="true"] .manager-utility {
    display: none !important;
}

.manager-modal[hidden] {
    display: none !important;
}

.manager-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: start center;
    padding-top: 60px;
    background: rgba(255, 255, 255, 0.82);
}

.manager-modal-window {
    width: min(740px, calc(100% - 40px));
    background: #ffffff;
    border: 1px solid #d6dce2;
    border-radius: 3px;
}

.manager-modal-window form {
    margin: 0;
}

.manager-modal-window header {
    min-height: 26px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: #ffffff;
    background: #4f4f4f;
    font-size: 12px;
    font-weight: 800;
}

.manager-modal-body {
    padding: 10px 8px 8px;
}

.manager-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 8px;
}

.manager-modal-grid label {
    display: grid !important;
    gap: 5px !important;
    color: #24415c !important;
    font-size: 10px !important;
    font-weight: 500 !important;
}

.manager-modal-grid label.wide {
    grid-column: span 2;
}

.manager-modal-grid label.wide + label {
    grid-column: auto;
}

.manager-modal-grid input {
    min-height: 26px !important;
    height: 26px !important;
    padding: 0 8px !important;
    border: 1px solid #cbd5df !important;
    border-radius: 2px !important;
    font-size: 12px !important;
    box-shadow: none !important;
}

.manager-modal-window footer {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    padding: 0 8px 16px;
}

.manager-modal-window .table-action.add {
    color: #ffffff;
    background: #007bff;
    border-color: #007bff;
}

@media (max-width: 760px) {
    .manager-status-tabs {
        grid-template-columns: 1fr;
    }

    .manager-status-tabs button {
        border-right: 0;
        border-bottom: 1px solid #d5d9de;
    }

    .manager-table-meta {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .manager-table-meta > div {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .client-dashboard .client-tools-grid {
        grid-template-columns: 1fr 1fr !important;
        padding: 0 8px 24px !important;
    }
}

@media (max-width: 460px) {
    .client-dashboard .client-tools-grid {
        grid-template-columns: 1fr !important;
    }
}
