html {
    min-height: 100%;
    background: #0d1020;
}

body.smtasker-site {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #f6f3ff;
    background:
        radial-gradient(circle at 78% 10%, rgba(57, 119, 103, 0.25), transparent 28%),
        radial-gradient(circle at 20% 6%, rgba(132, 100, 255, 0.16), transparent 34%),
        linear-gradient(180deg, #151827 0%, #0e1120 44%, #0d1020 100%);
    font-family: "Lato", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

.sm-topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid rgba(199, 190, 255, 0.16);
    background: rgba(22, 25, 41, 0.88);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.sm-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
}

.sm-brand:hover,
.sm-brand:focus {
    color: #fff;
    text-decoration: none;
}

.sm-logo {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #746cff 0%, #cbb7ff 100%);
    box-shadow: 0 10px 25px rgba(142, 118, 255, 0.34);
}

.sm-logo img {
    width: 26px;
    height: 26px;
    display: block;
}

.sm-top-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #c9c5d8;
    font-weight: 700;
}

.sm-top-actions a {
    color: #f8f5ff;
    text-decoration: none;
}

.sm-open-app,
.sm-logout,
.sm-button-primary,
.sm-button-secondary {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(204, 192, 255, 0.35);
    padding: 0 22px;
    font-weight: 900;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.sm-open-app,
.sm-button-primary {
    color: #17122d !important;
    background: linear-gradient(135deg, #d4c9ff 0%, #a78cff 100%);
    box-shadow: 0 14px 32px rgba(166, 139, 255, 0.28);
}

.sm-logout,
.sm-button-secondary {
    color: #fff !important;
    background: rgba(37, 40, 61, 0.92);
}

.sm-open-app:hover,
.sm-logout:hover,
.sm-button-primary:hover,
.sm-button-secondary:hover {
    text-decoration: none;
    transform: translateY(-1px);
    border-color: rgba(216, 207, 255, 0.75);
    box-shadow: 0 16px 34px rgba(166, 139, 255, 0.22);
}

.sm-app-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: calc(100vh - 76px);
}

.sm-sidebar {
    border-right: 1px solid rgba(199, 190, 255, 0.16);
    background: rgba(18, 21, 35, 0.72);
    padding: 30px 18px;
}

.sm-sidebar-title {
    margin: 0 0 20px 10px;
    color: #f8f5ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sm-sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sm-sidebar li {
    margin-bottom: 8px;
}

.sm-sidebar li.active {
    color: inherit !important;
    background: transparent !important;
}

.sm-sidebar li:before {
    content: "";
    width: 10px;
    height: 10px;
    display: inline-block;
    margin: 0 12px 0 12px;
    border-radius: 50%;
    background: rgba(203, 197, 227, 0.28);
    vertical-align: middle;
}

.sm-sidebar li a {
    width: calc(100% - 36px);
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    border-radius: 12px;
    color: #c9c4d8;
    font-weight: 900;
    padding: 0 12px;
    text-decoration: none;
    vertical-align: middle;
}

.sm-sidebar li.active:before {
    background: #151522;
}

.sm-sidebar li.active a {
    color: #18152b;
    background: linear-gradient(135deg, #d8ccff 0%, #9d84ff 100%);
    box-shadow: 0 14px 28px rgba(164, 136, 255, 0.28);
}

.sm-main {
    padding: 38px 42px 48px;
}

.sm-public-main {
    padding: 56px 6vw 70px;
}

.sm-footer {
    padding: 0 32px 28px;
    text-align: right;
}

.sm-footer a {
    color: #c8b8ff;
    font-weight: 900;
    text-decoration: none;
}

.sm-card {
    border: 1px solid rgba(202, 194, 255, 0.18);
    border-radius: 18px;
    background: rgba(32, 35, 55, 0.9);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.sm-card-header {
    padding: 24px 24px 18px;
    border-bottom: 1px solid rgba(202, 194, 255, 0.16);
}

.sm-card-body {
    padding: 24px;
}

.sm-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgba(202, 194, 255, 0.2);
    border-radius: 999px;
    padding: 0 14px;
    color: #f5f1ff;
    background: rgba(88, 83, 126, 0.48);
    font-size: 12px;
    font-weight: 900;
}

.sm-page-title,
.sm-public-title {
    margin: 12px 0 4px;
    color: #fff;
    font-size: 31px;
    line-height: 1.12;
    font-weight: 900;
}

.sm-page-copy,
.sm-muted {
    color: #c7c1d4;
}

.sm-input,
input.sm-input {
    width: 100%;
    min-height: 58px;
    margin: 0;
    border: 1px solid rgba(203, 197, 227, 0.17);
    border-radius: 14px;
    color: #fff;
    background: rgba(39, 42, 65, 0.92);
    font-size: 15px;
    font-weight: 800;
    padding: 0 18px;
    box-shadow: none;
}

.sm-input:focus,
input.sm-input:focus {
    outline: none;
    border-color: rgba(190, 170, 255, 0.74);
    box-shadow: 0 0 0 3px rgba(164, 136, 255, 0.18);
}

.sm-full-width {
    width: 100%;
}

.sm-status-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 0 12px;
    color: #d8fff1;
    background: rgba(71, 134, 124, 0.52);
    border: 1px solid rgba(136, 235, 206, 0.28);
    font-weight: 900;
}

.sm-status-pill.expired,
.sm-status-pill.payment-failed {
    color: #ffdbe5;
    background: rgba(237, 65, 106, 0.24);
    border-color: rgba(237, 65, 106, 0.5);
}

.validation-summary-errors {
    color: inherit;
}

#browserNotSupported {
    display: none;
    color: #ff6b8e;
    margin: 20px 32px;
}

html:has(body.smtasker-theme-light),
html:has(body.smtasker-site:not(.smtasker-theme-dark)) {
    background: #fbfbfe;
}

body.smtasker-theme-light,
body.smtasker-site:not(.smtasker-theme-dark) {
    color: #161629;
    background:
        radial-gradient(circle at 12% 12%, rgba(119, 78, 255, 0.08), transparent 30%),
        radial-gradient(circle at 92% 18%, rgba(75, 112, 255, 0.06), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f9f9fe 42%, #fbfbff 100%);
}

body.smtasker-theme-light .sm-topbar,
body.smtasker-site:not(.smtasker-theme-dark) .sm-topbar {
    border-bottom-color: #e9e7f1;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 38px rgba(38, 27, 92, 0.08);
}

body.smtasker-theme-light .sm-brand,
body.smtasker-site:not(.smtasker-theme-dark) .sm-brand,
body.smtasker-theme-light .sm-brand:hover,
body.smtasker-site:not(.smtasker-theme-dark) .sm-brand:hover,
body.smtasker-theme-light .sm-brand:focus,
body.smtasker-site:not(.smtasker-theme-dark) .sm-brand:focus {
    color: #151527;
}

body.smtasker-theme-light .sm-logo,
body.smtasker-site:not(.smtasker-theme-dark) .sm-logo {
    color: #6a35df;
    background: #ffffff;
    border: 1px solid #ece7fa;
    box-shadow: 0 10px 24px rgba(113, 67, 229, 0.16);
}

body.smtasker-theme-light .sm-top-actions,
body.smtasker-site:not(.smtasker-theme-dark) .sm-top-actions {
    color: #696878;
}

body.smtasker-theme-light .sm-top-actions a,
body.smtasker-site:not(.smtasker-theme-dark) .sm-top-actions a {
    color: #151527;
}

body.smtasker-theme-light .sm-open-app,
body.smtasker-site:not(.smtasker-theme-dark) .sm-open-app,
body.smtasker-theme-light .sm-button-primary,
body.smtasker-site:not(.smtasker-theme-dark) .sm-button-primary {
    color: #ffffff !important;
    border-color: transparent;
    background: linear-gradient(135deg, #8d35f2 0%, #642ddc 100%);
    box-shadow: 0 18px 38px rgba(111, 48, 226, 0.24);
}

body.smtasker-theme-light .sm-logout,
body.smtasker-site:not(.smtasker-theme-dark) .sm-logout,
body.smtasker-theme-light .sm-button-secondary,
body.smtasker-site:not(.smtasker-theme-dark) .sm-button-secondary {
    color: #4d367e !important;
    border-color: #eee9f8;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(42, 36, 73, 0.06);
}

body.smtasker-theme-light .sm-app-shell,
body.smtasker-site:not(.smtasker-theme-dark) .sm-app-shell {
    background: rgba(255, 255, 255, 0.58);
}

body.smtasker-theme-light .sm-sidebar,
body.smtasker-site:not(.smtasker-theme-dark) .sm-sidebar {
    border-right-color: #e9e7f1;
    background: rgba(255, 255, 255, 0.82);
}

body.smtasker-theme-light .sm-sidebar-title,
body.smtasker-site:not(.smtasker-theme-dark) .sm-sidebar-title {
    color: #161629;
}

body.smtasker-theme-light .sm-sidebar li:before,
body.smtasker-site:not(.smtasker-theme-dark) .sm-sidebar li:before {
    background: #cbc5e3;
}

body.smtasker-theme-light .sm-sidebar li.active:before,
body.smtasker-site:not(.smtasker-theme-dark) .sm-sidebar li.active:before {
    background: #ffffff;
}

body.smtasker-theme-light .sm-sidebar li a,
body.smtasker-site:not(.smtasker-theme-dark) .sm-sidebar li a {
    color: #6a6878;
}

body.smtasker-theme-light .sm-sidebar li.active a,
body.smtasker-site:not(.smtasker-theme-dark) .sm-sidebar li.active a {
    color: #ffffff;
    background: linear-gradient(135deg, #8d35f2 0%, #642ddc 100%);
    box-shadow: 0 18px 34px rgba(111, 48, 226, 0.22);
}

body.smtasker-theme-light .sm-card,
body.smtasker-site:not(.smtasker-theme-dark) .sm-card {
    border-color: #e8e5f0;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 58px rgba(48, 38, 90, 0.11);
}

body.smtasker-theme-light .sm-card-header,
body.smtasker-site:not(.smtasker-theme-dark) .sm-card-header {
    border-bottom-color: #ebe8f1;
}

body.smtasker-theme-light .sm-eyebrow,
body.smtasker-site:not(.smtasker-theme-dark) .sm-eyebrow {
    color: #6730d6;
    border-color: #eadffb;
    background: #f5f0ff;
}

body.smtasker-theme-light .sm-page-title,
body.smtasker-site:not(.smtasker-theme-dark) .sm-page-title,
body.smtasker-theme-light .sm-public-title,
body.smtasker-site:not(.smtasker-theme-dark) .sm-public-title,
body.smtasker-theme-light .sm-card h2,
body.smtasker-site:not(.smtasker-theme-dark) .sm-card h2,
body.smtasker-theme-light .sm-card h3,
body.smtasker-site:not(.smtasker-theme-dark) .sm-card h3 {
    color: #161629;
}

body.smtasker-theme-light .sm-page-copy,
body.smtasker-site:not(.smtasker-theme-dark) .sm-page-copy,
body.smtasker-theme-light .sm-muted,
body.smtasker-site:not(.smtasker-theme-dark) .sm-muted {
    color: #626170;
}

body.smtasker-theme-light .sm-input,
body.smtasker-site:not(.smtasker-theme-dark) .sm-input,
body.smtasker-theme-light input.sm-input,
body.smtasker-site:not(.smtasker-theme-dark) input.sm-input {
    color: #17172a;
    border-color: #e7e4ee;
    background: #ffffff;
}

body.smtasker-theme-light .sm-input:focus,
body.smtasker-site:not(.smtasker-theme-dark) .sm-input:focus,
body.smtasker-theme-light input.sm-input:focus,
body.smtasker-site:not(.smtasker-theme-dark) input.sm-input:focus {
    border-color: #8d55ee;
    box-shadow: 0 0 0 3px rgba(117, 58, 224, 0.14);
}

body.smtasker-theme-light .sm-footer a,
body.smtasker-site:not(.smtasker-theme-dark) .sm-footer a,
body.smtasker-theme-light .sm-login-forgot,
body.smtasker-site:not(.smtasker-theme-dark) .sm-login-forgot {
    color: #6331d2;
}

body.smtasker-theme-light .sm-status-pill,
body.smtasker-site:not(.smtasker-theme-dark) .sm-status-pill,
body.smtasker-theme-light .sm-success-badge,
body.smtasker-site:not(.smtasker-theme-dark) .sm-success-badge,
body.smtasker-theme-light .sm-trial-badge,
body.smtasker-site:not(.smtasker-theme-dark) .sm-trial-badge {
    color: #17745f;
    border-color: #d7f0e9;
    background: #eafbf6;
}

body.smtasker-theme-light .sm-status-pill.expired,
body.smtasker-site:not(.smtasker-theme-dark) .sm-status-pill.expired,
body.smtasker-theme-light .sm-status-pill.payment-failed,
body.smtasker-site:not(.smtasker-theme-dark) .sm-status-pill.payment-failed {
    color: #b51f4c;
    background: #fff0f5;
    border-color: #f7ccd9;
}

body.smtasker-theme-light .sm-license-table,
body.smtasker-site:not(.smtasker-theme-dark) .sm-license-table,
body.smtasker-theme-light .sm-summary-block,
body.smtasker-site:not(.smtasker-theme-dark) .sm-summary-block,
body.smtasker-theme-light .sm-trial-detail,
body.smtasker-site:not(.smtasker-theme-dark) .sm-trial-detail,
body.smtasker-theme-light .sm-activation-watch,
body.smtasker-site:not(.smtasker-theme-dark) .sm-activation-watch {
    border-color: #e8e5f0;
    background: #fbfaff;
}

body.smtasker-theme-light .sm-license-table td,
body.smtasker-site:not(.smtasker-theme-dark) .sm-license-table td {
    color: #161629;
    border-bottom-color: #e9e6ef;
}

body.smtasker-theme-light .sm-license-table .tableHeader,
body.smtasker-site:not(.smtasker-theme-dark) .sm-license-table .tableHeader {
    color: #6b6878;
    background: #f6f3fb;
}

body.smtasker-theme-light .sm-license-note,
body.smtasker-site:not(.smtasker-theme-dark) .sm-license-note {
    color: #4b475d;
    border-color: #e8e2f2;
    background: #fbf7ff;
}

body.smtasker-theme-light .sm-renew-copy,
body.smtasker-site:not(.smtasker-theme-dark) .sm-renew-copy,
body.smtasker-theme-light .sm-renew-label,
body.smtasker-site:not(.smtasker-theme-dark) .sm-renew-label,
body.smtasker-theme-light .sm-cancel-copy,
body.smtasker-site:not(.smtasker-theme-dark) .sm-cancel-copy,
body.smtasker-theme-light .sm-success-copy,
body.smtasker-site:not(.smtasker-theme-dark) .sm-success-copy,
body.smtasker-theme-light .sm-trial-message,
body.smtasker-site:not(.smtasker-theme-dark) .sm-trial-message,
body.smtasker-theme-light .sm-trial-detail-value,
body.smtasker-site:not(.smtasker-theme-dark) .sm-trial-detail-value,
body.smtasker-theme-light .sm-access-list li,
body.smtasker-site:not(.smtasker-theme-dark) .sm-access-list li,
body.smtasker-theme-light .sm-next-list li,
body.smtasker-site:not(.smtasker-theme-dark) .sm-next-list li,
body.smtasker-theme-light .sm-security-list li,
body.smtasker-site:not(.smtasker-theme-dark) .sm-security-list li,
body.smtasker-theme-light .sm-success-list li,
body.smtasker-site:not(.smtasker-theme-dark) .sm-success-list li {
    color: #17172a;
}

body.smtasker-theme-light .sm-trial-lead,
body.smtasker-site:not(.smtasker-theme-dark) .sm-trial-lead,
body.smtasker-theme-light .sm-plan-caption,
body.smtasker-site:not(.smtasker-theme-dark) .sm-plan-caption,
body.smtasker-theme-light .sm-plan-capacity,
body.smtasker-site:not(.smtasker-theme-dark) .sm-plan-capacity,
body.smtasker-theme-light .sm-summary-label,
body.smtasker-site:not(.smtasker-theme-dark) .sm-summary-label,
body.smtasker-theme-light .sm-trial-detail-label,
body.smtasker-site:not(.smtasker-theme-dark) .sm-trial-detail-label,
body.smtasker-theme-light .sm-checkout-footnote,
body.smtasker-site:not(.smtasker-theme-dark) .sm-checkout-footnote,
body.smtasker-theme-light .sm-activation-text,
body.smtasker-site:not(.smtasker-theme-dark) .sm-activation-text {
    color: #696878;
}

body.smtasker-theme-light .sm-billing-toggle,
body.smtasker-site:not(.smtasker-theme-dark) .sm-billing-toggle {
    border-color: #e8e5f0;
    background: #f5f2fa;
}

body.smtasker-theme-light .sm-billing-toggle label,
body.smtasker-site:not(.smtasker-theme-dark) .sm-billing-toggle label {
    color: #6d6a78;
}

body.smtasker-theme-light .sm-billing-toggle label.selected,
body.smtasker-site:not(.smtasker-theme-dark) .sm-billing-toggle label.selected {
    color: #ffffff;
    background: linear-gradient(135deg, #8d35f2 0%, #642ddc 100%);
    box-shadow: 0 14px 26px rgba(111, 48, 226, 0.22);
}

body.smtasker-theme-light .sm-plan-option,
body.smtasker-site:not(.smtasker-theme-dark) .sm-plan-option {
    color: #161629;
    border-color: #e8e5f0;
    background: #ffffff;
}

body.smtasker-theme-light .sm-plan-option.selected,
body.smtasker-site:not(.smtasker-theme-dark) .sm-plan-option.selected {
    border-color: #8c4deb;
    box-shadow: inset 0 0 0 1px rgba(117, 58, 224, 0.28), 0 12px 28px rgba(76, 49, 133, 0.08);
}

body.smtasker-theme-light .sm-plan-price,
body.smtasker-site:not(.smtasker-theme-dark) .sm-plan-price,
body.smtasker-theme-light .sm-summary-value,
body.smtasker-site:not(.smtasker-theme-dark) .sm-summary-value,
body.smtasker-theme-light .sm-summary-line,
body.smtasker-site:not(.smtasker-theme-dark) .sm-summary-line {
    color: #161629;
}

body.smtasker-theme-light .sm-plan-price s,
body.smtasker-site:not(.smtasker-theme-dark) .sm-plan-price s,
body.smtasker-theme-light .sm-summary-line s,
body.smtasker-site:not(.smtasker-theme-dark) .sm-summary-line s {
    color: #9a98a7;
}

body.smtasker-theme-light .sm-summary-total,
body.smtasker-site:not(.smtasker-theme-dark) .sm-summary-total {
    border-top-color: #ece8f1;
}

body.smtasker-theme-light .sm-checkout-actions .sm-button-secondary,
body.smtasker-site:not(.smtasker-theme-dark) .sm-checkout-actions .sm-button-secondary {
    color: #ffffff !important;
    border-color: #17172a;
    background: #17172a;
    box-shadow: 0 12px 28px rgba(23, 23, 42, 0.14);
}

body.smtasker-theme-light .sm-trial-detail-value.price,
body.smtasker-site:not(.smtasker-theme-dark) .sm-trial-detail-value.price {
    color: #6331d2;
}

body.smtasker-theme-light .sm-next-step,
body.smtasker-site:not(.smtasker-theme-dark) .sm-next-step,
body.smtasker-theme-light .sm-success-step,
body.smtasker-site:not(.smtasker-theme-dark) .sm-success-step,
body.smtasker-theme-light .sm-access-check,
body.smtasker-site:not(.smtasker-theme-dark) .sm-access-check,
body.smtasker-theme-light .sm-security-step,
body.smtasker-site:not(.smtasker-theme-dark) .sm-security-step,
body.smtasker-theme-light .sm-status-mark,
body.smtasker-site:not(.smtasker-theme-dark) .sm-status-mark {
    color: #ffffff;
    background: #4f6eea;
}

body.smtasker-theme-light .sm-login-validation,
body.smtasker-site:not(.smtasker-theme-dark) .sm-login-validation {
    color: #b51f4c;
    border-color: #f3cbd7;
    background: #fff0f4;
}

body.smtasker-theme-light .sm-login-validation li + li,
body.smtasker-site:not(.smtasker-theme-dark) .sm-login-validation li + li {
    color: #7d324d;
}

body.smtasker-theme-light .sm-trial-error,
body.smtasker-site:not(.smtasker-theme-dark) .sm-trial-error {
    color: #b51f4c;
    border-color: #f3cbd7;
    background: #fff0f4;
}

body.smtasker-theme-light .sm-activation-watch.is-done,
body.smtasker-site:not(.smtasker-theme-dark) .sm-activation-watch.is-done {
    border-color: #cceee5;
    background: #effbf7;
}

body.smtasker-theme-light .sm-activation-watch.is-failed,
body.smtasker-site:not(.smtasker-theme-dark) .sm-activation-watch.is-failed {
    border-color: #f3cbd7;
    background: #fff0f4;
}

body.smtasker-theme-light .sm-loader,
body.smtasker-site:not(.smtasker-theme-dark) .sm-loader {
    border-color: rgba(117, 58, 224, 0.16);
    border-top-color: #7137e1;
}

@media (max-width: 980px) {
    .sm-topbar {
        padding: 16px 20px;
        align-items: flex-start;
        gap: 14px;
        flex-direction: column;
    }

    .sm-top-actions {
        flex-wrap: wrap;
    }

    .sm-app-shell {
        grid-template-columns: 1fr;
    }

    .sm-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(199, 190, 255, 0.16);
    }

    .sm-main,
    .sm-public-main {
        padding: 28px 18px 44px;
    }
}
