/* =========================================================
   TRYBOT EXPERIENCE V3 — expressive product UI
   ========================================================= */
:root {
    --tb3-navy: #071523;
    --tb3-navy-2: #0b2134;
    --tb3-cyan: #18baf4;
    --tb3-blue: #1689f5;
    --tb3-violet: #7567f8;
    --tb3-ice: #edf7ff;
    --tb3-canvas: #f3f7fb;
    --tb3-line: #d8e3ed;
    --tb3-copy: #526477;
    --tb3-ink: #122033;
    --tb3-shadow: 0 18px 52px rgba(29, 60, 88, .10);
}

/* Login: split product presentation, inspired by the homepage rather than a flat black screen. */
body.trybot-template-login .trybot-login-section {
    min-height: 100vh !important;
    padding: 0 !important;
    color: var(--tb3-ink) !important;
    background: #f8fafc !important;
}

body.trybot-template-login .trybot-login-section::before,
body.trybot-template-login .trybot-login-section::after {
    display: none !important;
}

body.trybot-template-login .trybot-login-shell {
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(480px, .92fr) minmax(620px, 1.08fr) !important;
    align-items: stretch !important;
}

body.trybot-template-login .trybot-login-main {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 54px 62px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.trybot-template-login .trybot-login-brand {
    margin: 0 0 32px !important;
    text-align: left !important;
}

body.trybot-template-login .trybot-login-brand img {
    width: 178px !important;
    height: auto !important;
}

body.trybot-template-login .trybot-login-heading {
    margin: 0 0 28px !important;
    text-align: center !important;
}

body.trybot-template-login .trybot-login-heading h1 {
    margin-bottom: 8px !important;
    color: var(--tb3-ink) !important;
    font-size: 38px !important;
    font-weight: 750 !important;
    letter-spacing: -.035em !important;
}

body.trybot-template-login .trybot-login-heading p {
    color: var(--tb3-copy) !important;
    font-size: 15px !important;
}

body.trybot-template-login .trybot-login-card {
    border: 0 !important;
    border-radius: 22px !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.trybot-template-login .trybot-login-card-inner {
    padding: 0 !important;
}

body.trybot-template-login .trybot-login-card :where(label,strong,p,span) {
    color: var(--tb3-ink) !important;
}

body.trybot-template-login .trybot-login-card .form-control-label {
    font-weight: 650 !important;
}

body.trybot-template-login .trybot-login-card .input-group {
    border: 1px solid #cedae5 !important;
    border-radius: 13px !important;
    background: #edf4fb !important;
    box-shadow: none !important;
}

body.trybot-template-login .trybot-login-card :is(.input-group-text,.form-control,.btn-reveal-pw) {
    color: var(--tb3-ink) !important;
    border: 0 !important;
    background: transparent !important;
}

body.trybot-template-login .trybot-login-card .form-control,
body.trybot-template-login .trybot-login-card input:-webkit-autofill,
body.trybot-template-login .trybot-login-card input:-webkit-autofill:hover,
body.trybot-template-login .trybot-login-card input:-webkit-autofill:focus,
body.trybot-template-login .trybot-login-card input:-webkit-autofill:active {
    color: var(--tb3-ink) !important;
    -webkit-text-fill-color: var(--tb3-ink) !important;
    caret-color: var(--tb3-ink) !important;
    -webkit-box-shadow: 0 0 0 1000px #edf4fb inset !important;
    box-shadow: 0 0 0 1000px #edf4fb inset !important;
    transition: background-color 9999s ease-out 0s !important;
}

body.trybot-template-login .trybot-login-card .input-group:focus-within {
    border-color: var(--tb3-blue) !important;
    box-shadow: 0 0 0 4px rgba(22,137,245,.12) !important;
}

body.trybot-template-login .trybot-login-card .btn-primary {
    min-height: 52px !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: linear-gradient(100deg,var(--tb3-blue),var(--tb3-cyan)) !important;
    box-shadow: 0 12px 28px rgba(22,137,245,.22) !important;
}

body.trybot-template-login .trybot-login-register {
    margin-top: 26px !important;
    padding-top: 22px !important;
    border-top: 1px solid var(--tb3-line) !important;
}

body.trybot-template-login .trybot-login-register-button {
    color: var(--tb3-ink) !important;
    border-color: var(--tb3-line) !important;
    border-radius: 13px !important;
    background: #fff !important;
}

body.trybot-template-login .trybot-login-register-button i,
body.trybot-template-login .trybot-login-forgot {
    color: var(--tb3-blue) !important;
}

body.trybot-template-login .trybot-login-footer {
    margin-top: 18px !important;
    color: var(--tb3-copy) !important;
    border: 1px solid var(--tb3-line) !important;
    border-radius: 12px !important;
    background: var(--tb3-ice) !important;
}

body.trybot-template-login .trybot-login-footer i {
    color: var(--tb3-blue) !important;
}

body.trybot-template-login :is(.trybot-login-back a,.trybot-login-security) {
    color: var(--tb3-copy) !important;
}

body.trybot-template-login .trybot-login-showcase {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(145deg,#05080d 0%,#081b2a 50%,#15204a 100%);
}

body.trybot-template-login .trybot-login-showcase-video,
body.trybot-template-login .trybot-login-showcase-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

body.trybot-template-login .trybot-login-showcase-video {
    z-index: -2;
    object-fit: cover;
    opacity: .78;
}

body.trybot-template-login .trybot-login-showcase-shade {
    z-index: -1;
    background: linear-gradient(180deg,rgba(4,9,16,.15),rgba(5,14,25,.48) 48%,rgba(3,9,16,.88));
}

body.trybot-template-login .trybot-login-showcase-copy {
    position: absolute;
    top: 50%;
    right: clamp(42px,7vw,110px);
    bottom: auto;
    left: clamp(42px,7vw,110px);
    max-width: 720px;
    margin: 0 auto;
    transform: translateY(-50%);
    color: #fff;
    text-align: center;
}

body.trybot-template-login .trybot-login-showcase-pill {
    display: inline-flex;
    margin-bottom: 22px;
    padding: 8px 13px;
    color: #dff7ff !important;
    border: 1px solid rgba(89,213,255,.34);
    border-radius: 999px;
    background: rgba(13,147,202,.16);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 700;
}

body.trybot-template-login .trybot-login-showcase h2 {
    max-width: 650px;
    margin: 0 0 20px;
    color: #fff !important;
    font-size: clamp(40px,4.3vw,70px);
    font-weight: 720;
    line-height: .98;
    letter-spacing: -.05em;
    margin-right: auto;
    margin-left: auto;
}

body.trybot-template-login .trybot-login-showcase p {
    max-width: 610px;
    margin: 0;
    color: #c6d6e5 !important;
    font-size: 17px;
    line-height: 1.65;
    margin-right: auto;
    margin-left: auto;
}

body.trybot-template-login .trybot-login-showcase-points {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    justify-content: center;
}

body.trybot-template-login .trybot-login-showcase-points span {
    color: #fff !important;
    font-size: 13px;
    font-weight: 650;
}

body.trybot-template-login .trybot-login-showcase-points i {
    margin-right: 7px;
    color: #56d5ff;
}

/* Authenticated shell: richer surfaces and lighter typography. */
body.trybot-authenticated {
    background: var(--tb3-canvas) !important;
}

body.trybot-authenticated .trybot-client-content {
    background:
        radial-gradient(circle at 88% 3%,rgba(117,103,248,.11),transparent 26%),
        radial-gradient(circle at 28% 0%,rgba(24,186,244,.10),transparent 30%),
        linear-gradient(180deg,#f7fbff 0%,#f1f6fb 100%) !important;
}

body.trybot-authenticated .trybot-sidebar {
    background:
        radial-gradient(circle at 30% 0%,rgba(24,186,244,.18),transparent 28%),
        linear-gradient(180deg,#071523 0%,#05090f 100%) !important;
}

body.trybot-authenticated .trybot-sidebar :is(a,span,strong) {
    font-weight: 580 !important;
}

body.trybot-authenticated .trybot-sidebar :is(nav a:hover,.trybot-nav-item:hover,.active > a,.is-active) {
    color: #fff !important;
    background: linear-gradient(100deg,rgba(22,137,245,.22),rgba(24,186,244,.10)) !important;
}

body.trybot-authenticated .trybot-sidebar .trybot-logo,
body.trybot-authenticated .trybot-sidebar .trybot-logo:hover,
body.trybot-authenticated .trybot-sidebar .trybot-logo:focus {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
}

body.trybot-authenticated .trybot-content :is(h1,h2,h3,h4,h5,h6),
body.trybot-authenticated .trybot-client-content :is(.card-title,strong) {
    color: var(--tb3-ink) !important;
    font-weight: 700 !important;
    letter-spacing: -.025em !important;
}

body.trybot-authenticated .trybot-content :is(p,.text-muted,small),
body.trybot-authenticated .trybot-client-content :is(.text-muted,small) {
    color: var(--tb3-copy) !important;
}

body.trybot-template-clientareahome .trybot-home-shell {
    background: transparent !important;
}

body.trybot-template-clientareahome .trybot-home-shell::before,
body.trybot-template-clientareahome .trybot-home-shell::after {
    display: none !important;
}

body.trybot-template-clientareahome .trybot-home-hero {
    margin-bottom: 22px !important;
    padding: 34px 38px !important;
    color: #fff !important;
    border: 1px solid rgba(60,195,245,.20) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 86% 15%,rgba(117,103,248,.42),transparent 32%),
        radial-gradient(circle at 60% 120%,rgba(24,186,244,.22),transparent 35%),
        linear-gradient(125deg,#071523 0%,#0a2133 58%,#121c41 100%) !important;
    box-shadow: 0 24px 62px rgba(8,28,46,.20) !important;
}

body.trybot-template-clientareahome .trybot-home-hero :is(.trybot-kicker,.trybot-title,.trybot-subtitle) {
    color: #fff !important;
}

body.trybot-template-clientareahome .trybot-home-hero .trybot-kicker {
    color: #5bd8ff !important;
}

body.trybot-template-clientareahome .trybot-title {
    font-weight: 720 !important;
}

body.trybot-template-clientareahome .trybot-subtitle {
    max-width: 720px !important;
    opacity: .78;
}

body.trybot-template-clientareahome .trybot-hero-btn {
    color: #fff !important;
    border-color: rgba(255,255,255,.22) !important;
    background: rgba(255,255,255,.10) !important;
    backdrop-filter: blur(10px);
}

body.trybot-template-clientareahome .trybot-hero-btn.primary {
    color: #071523 !important;
    border-color: transparent !important;
    background: linear-gradient(100deg,#5edcff,#2cb7f4) !important;
    box-shadow: 0 12px 26px rgba(24,186,244,.22) !important;
}

body.trybot-template-clientareahome .trybot-alert {
    color: #17324a !important;
    border-color: #cce7f8 !important;
    background: linear-gradient(90deg,#e8f7ff,#f5fbff) !important;
}

body.trybot-template-clientareahome :is(.trybot-welcome-card,.trybot-stat-card,.trybot-panels .card) {
    color: var(--tb3-ink) !important;
    border-color: rgba(164,190,211,.48) !important;
    background: rgba(255,255,255,.90) !important;
    box-shadow: var(--tb3-shadow) !important;
}

body.trybot-template-clientareahome .trybot-stat-card {
    overflow: hidden;
}

body.trybot-template-clientareahome .trybot-stat-card::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -48px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(24,186,244,.16),transparent 68%);
}

body.trybot-template-clientareahome .trybot-stat-icon,
body.trybot-template-clientareahome .trybot-avatar-lg {
    color: #087eb7 !important;
    background: linear-gradient(145deg,#e2f6ff,#eef0ff) !important;
}

body.trybot-template-clientareahome .trybot-stat-number {
    color: var(--tb3-ink) !important;
    font-weight: 720 !important;
}

body.trybot-template-clientareahome .trybot-panels :is(.card-header,.card-footer,.list-group-item) {
    color: var(--tb3-ink) !important;
    border-color: var(--tb3-line) !important;
    background: rgba(255,255,255,.88) !important;
}

body.trybot-template-clientareahome :is(.trybot-hero-btn.primary,.trybot-panels .btn-primary,.trybot-panels .btn-success,.trybot-panels .bg-color-blue,.trybot-pin-btn) {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(100deg,var(--tb3-blue),var(--tb3-cyan)) !important;
    box-shadow: 0 10px 24px rgba(22,137,245,.18) !important;
}

/* All authenticated content: fix pale text on white rows and preserve the new visual family. */
body.trybot-authenticated .trybot-client-content :is(.card,.panel,.well,.modal-content,.table-container,.dataTables_wrapper) {
    color: var(--tb3-ink) !important;
    border-color: var(--tb3-line) !important;
    background: rgba(255,255,255,.94) !important;
    box-shadow: var(--tb3-shadow) !important;
}

body.trybot-authenticated .trybot-client-content :is(.card-header,.card-footer,.panel-heading,.panel-footer,.modal-header,.modal-footer,thead th) {
    color: var(--tb3-ink) !important;
    border-color: var(--tb3-line) !important;
    background: linear-gradient(180deg,#f9fcff,#eef5fb) !important;
}

body.trybot-authenticated .trybot-client-content :is(table,tbody,tr,td,.list-group-item) {
    color: var(--tb3-ink) !important;
    border-color: var(--tb3-line) !important;
    background: #fff !important;
}

body.trybot-authenticated .trybot-client-content table a,
body.trybot-authenticated .trybot-client-content .list-group-item a {
    color: #087fbd !important;
    font-weight: 650 !important;
}

body.trybot-authenticated .trybot-client-content :is(.btn-primary,.btn-success,.btn-info,button[type="submit"]):not(.close) {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(100deg,var(--tb3-blue),var(--tb3-cyan)) !important;
    box-shadow: 0 10px 24px rgba(22,137,245,.18) !important;
}

body.trybot-authenticated .trybot-client-content :is(.form-control,input,select,textarea) {
    color: var(--tb3-ink) !important;
    border-color: #cad9e6 !important;
    background: #f7fbff !important;
}

body.trybot-authenticated .trybot-client-content :is(.badge-primary,.badge-info,.label-primary,.status-active) {
    color: #0874a8 !important;
    background: #dff5ff !important;
}

@media (max-width: 1100px) {
    body.trybot-template-login .trybot-login-shell {
        grid-template-columns: minmax(440px,.95fr) minmax(480px,1.05fr) !important;
    }

    body.trybot-template-login .trybot-login-main {
        padding-right: 44px;
        padding-left: 44px;
    }
}

@media (max-width: 860px) {
    body.trybot-template-login .trybot-login-shell {
        display: block !important;
        min-height: 100vh !important;
        background:
            radial-gradient(circle at 85% 8%,rgba(117,103,248,.18),transparent 30%),
            radial-gradient(circle at 10% 0%,rgba(24,186,244,.16),transparent 34%),
            #f6faff !important;
    }

    body.trybot-template-login .trybot-login-main {
        max-width: 520px;
        min-height: 100vh;
        padding: 34px 22px 42px;
    }

    body.trybot-template-login .trybot-login-showcase {
        display: none !important;
    }

    body.trybot-template-login .trybot-login-brand {
        text-align: center !important;
    }

    body.trybot-template-login .trybot-login-heading {
        text-align: center !important;
    }

    body.trybot-template-login .trybot-login-heading h1 {
        font-size: 34px !important;
    }

    body.trybot-template-login .trybot-login-card {
        padding: 24px 20px !important;
        border: 1px solid rgba(190,210,225,.7) !important;
        background: rgba(255,255,255,.90) !important;
        box-shadow: 0 24px 62px rgba(25,61,92,.12) !important;
        backdrop-filter: blur(18px);
    }

    body.trybot-template-login .trybot-login-footer {
        color: var(--tb3-copy) !important;
    }

    body.trybot-template-clientareahome .trybot-home-hero {
        padding: 26px 22px !important;
    }
}

body.trybot-template-login .trybot-login-card .btn-primary :is(span,i) {
    color: #fff !important;
}

body.trybot-template-login .trybot-login-card .trybot-login-footer {
    color: #426079 !important;
}

/* Ticket center: retain the dark premium hero while making operational data crisp. */
body.trybot-authenticated .trybot-support-page {
    color: var(--tb3-ink) !important;
    background:
        radial-gradient(circle at 88% 4%,rgba(117,103,248,.10),transparent 30%),
        radial-gradient(circle at 26% 0%,rgba(24,186,244,.11),transparent 32%),
        linear-gradient(180deg,#f7fbff 0%,#f0f6fb 100%) !important;
}

body.trybot-authenticated .trybot-support-page::before,
body.trybot-authenticated .trybot-support-page::after {
    opacity: .24 !important;
}

body.trybot-authenticated .trybot-support-page :is(.trybot-support-title,.trybot-panel-heading h2,.trybot-shortcut-copy strong) {
    color: var(--tb3-ink) !important;
    font-weight: 700 !important;
}

body.trybot-authenticated .trybot-support-page :is(.trybot-support-subtitle,.trybot-panel-heading p,.trybot-shortcut-copy span) {
    color: var(--tb3-copy) !important;
}

body.trybot-authenticated .trybot-support-page .trybot-support-kicker {
    color: #087fb9 !important;
}

body.trybot-authenticated .trybot-support-page .trybot-support-hero {
    margin-bottom: 22px !important;
    padding: 32px 36px !important;
    border: 1px solid rgba(79,199,245,.20) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 88% 15%,rgba(117,103,248,.40),transparent 34%),
        radial-gradient(circle at 58% 120%,rgba(24,186,244,.20),transparent 36%),
        linear-gradient(120deg,#071523,#0b2336 58%,#151d43) !important;
    box-shadow: 0 22px 58px rgba(8,28,46,.18) !important;
}

body.trybot-authenticated .trybot-support-page .trybot-support-hero :is(.trybot-support-title,.trybot-support-subtitle) {
    color: #fff !important;
}

body.trybot-authenticated .trybot-support-page .trybot-support-hero .trybot-support-kicker {
    color: #59d7ff !important;
}

body.trybot-authenticated .trybot-support-page .trybot-shortcut-card {
    border-color: rgba(162,189,211,.50) !important;
    background: rgba(255,255,255,.94) !important;
    box-shadow: var(--tb3-shadow) !important;
}

body.trybot-authenticated .trybot-support-page :is(.trybot-shortcut-icon,.trybot-panel-heading-icon) {
    color: #5bd8ff !important;
    border-color: rgba(65,196,247,.22) !important;
    background: rgba(24,186,244,.12) !important;
}

body.trybot-authenticated .trybot-support-page .trybot-tickets-panel {
    overflow: hidden !important;
    border-color: rgba(105,187,221,.24) !important;
    background: #fff !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.24) !important;
}

body.trybot-authenticated .trybot-support-page .trybot-tickets-panel-head {
    color: var(--tb3-ink) !important;
    border-color: var(--tb3-line) !important;
    background: linear-gradient(100deg,#f7fbff,#eaf5fc) !important;
}

body.trybot-authenticated .trybot-support-page .trybot-tickets-panel-head :is(h2,p,strong,span) {
    color: var(--tb3-ink) !important;
}

body.trybot-authenticated .trybot-support-page .trybot-tickets-panel :is(.table-container,.dataTables_wrapper,.trybot-table-scroll) {
    color: var(--tb3-ink) !important;
    background: #fff !important;
}

body.trybot-authenticated .trybot-support-page .trybot-tickets-panel thead th {
    color: #42576a !important;
    border-color: #dbe5ed !important;
    background: #eef5fa !important;
}

body.trybot-authenticated .trybot-support-page .trybot-tickets-panel :is(tbody,tr,td) {
    color: var(--tb3-ink) !important;
    border-color: #e2e9ef !important;
    background: #fff !important;
}

body.trybot-authenticated .trybot-support-page .trybot-tickets-panel tbody tr:hover td {
    background: #f2f9fd !important;
}

body.trybot-authenticated .trybot-support-page .trybot-tickets-panel :is(.trybot-ticket-department,.trybot-ticket-date) {
    color: #607487 !important;
}

body.trybot-authenticated .trybot-support-page .trybot-tickets-panel :is(.trybot-ticket-number,.trybot-ticket-subject) {
    color: #087fb9 !important;
}

body.trybot-authenticated .trybot-support-page .trybot-search-wrapper input {
    color: var(--tb3-ink) !important;
    border-color: #cad9e6 !important;
    background: #f7fbff !important;
}

body.trybot-authenticated .trybot-support-page .trybot-btn-primary {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(100deg,var(--tb3-blue),var(--tb3-cyan)) !important;
    box-shadow: 0 10px 24px rgba(22,137,245,.20) !important;
}

body.trybot-authenticated .trybot-support-page .trybot-btn-secondary {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(100deg,var(--tb3-blue),var(--tb3-cyan)) !important;
}

@media (max-width: 760px) {
    body.trybot-authenticated .trybot-support-page .trybot-support-hero {
        padding: 25px 21px !important;
        border-radius: 20px !important;
    }
}

/* Final cascade guard: legacy inline template styles must never win */
body.trybot-authenticated :is(.trybot-domains-panel-header,.trybot-services-panel-header,.trybot-invoices-panel-head,.trybot-content-card-header)
    :is(h1,h2,h3,h4,p,span,strong) {
    color: var(--tb3-ink) !important;
}

body.trybot-authenticated :is(.trybot-domains-panel-header,.trybot-services-panel-header,.trybot-invoices-panel-head,.trybot-content-card-header) p {
    color: #607689 !important;
}

body.trybot-authenticated .trybot-product-page .alert-danger {
    color: #9f2430 !important;
    border-color: #f1b5bc !important;
    background: #fff1f3 !important;
}

body.trybot-authenticated .trybot-product-page .alert-warning {
    color: #85540a !important;
    border-color: #f2d28d !important;
    background: #fff8e8 !important;
}

body.trybot-authenticated .trybot-product-page .alert :is(a,button,.btn) {
    color: #fff !important;
    background: linear-gradient(100deg,var(--tb3-blue),var(--tb3-cyan)) !important;
}

body.trybot-authenticated .trybot-product-nav {
    color: var(--tb3-ink) !important;
    border-color: rgba(150,177,199,.42) !important;
    background: #fff !important;
}

body.trybot-authenticated .trybot-product-nav :is(.trybot-product-nav-button,.trybot-product-nav-link) {
    color: #31475a !important;
}

body.trybot-authenticated .trybot-product-nav :is(.trybot-product-nav-button,.trybot-product-nav-link):is(:hover,:focus),
body.trybot-authenticated .trybot-product-nav .trybot-product-nav-button.is-active {
    color: #075e91 !important;
    border-color: #9ddaf4 !important;
    background: #e9f7fd !important;
}

body.trybot-authenticated .trybot-support-page .trybot-tickets-panel :is(.status-open,.status-customer-reply) {
    color: #076f9f !important;
    border-color: #9fdcf5 !important;
    background: #e9f8fe !important;
}

body.trybot-authenticated .trybot-support-page .trybot-tickets-panel :is(.status-answered,.status-in-progress) {
    color: #5146b8 !important;
    border-color: #c8c2fa !important;
    background: #f1efff !important;
}

/* Remaining standalone template families */
body.trybot-authenticated :is(.trybot-domains-shell,.trybot-services-shell,.trybot-product-shell),
body.trybot-template-reset .trybot-reset-shell,
body.trybot-authenticated .trybot-ticket-success-page,
body.trybot-authenticated .trybot-email-body-shell {
    color: var(--tb3-ink) !important;
    background:
        radial-gradient(circle at 92% 4%,rgba(117,103,248,.10),transparent 28%),
        radial-gradient(circle at 10% 8%,rgba(24,186,244,.10),transparent 25%),
        var(--tb3-canvas) !important;
}

body.trybot-authenticated :is(.trybot-domains-shell,.trybot-services-shell,.trybot-product-shell)
    :is(.card,.panel,.trybot-card,.trybot-panel,.trybot-summary-card,.trybot-detail-card),
body.trybot-authenticated .trybot-ticket-success-page
    :is(.trybot-ticket-success-card,.trybot-success-card,.card,.panel),
body.trybot-authenticated .trybot-email-body-shell,
body.trybot-template-reset .trybot-reset-shell
    :is(.card,.panel,.trybot-reset-card,.trybot-auth-card) {
    color: var(--tb3-ink) !important;
    border-color: rgba(144,174,198,.38) !important;
    background: rgba(255,255,255,.95) !important;
    box-shadow: var(--tb3-shadow) !important;
}

body.trybot-authenticated .trybot-ticket-success-page
    :is(.btn-primary,.trybot-btn-primary),
body.trybot-template-reset .trybot-reset-shell
    :is(.btn-primary,.trybot-btn-primary) {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(100deg,var(--tb3-blue),var(--tb3-cyan)) !important;
    box-shadow: 0 12px 28px rgba(22,137,245,.20) !important;
}

body.trybot-template-reset .trybot-reset-shell input,
body.trybot-authenticated .trybot-email-body-shell input {
    color: var(--tb3-ink) !important;
    border-color: #cad9e6 !important;
    background: #f7fbff !important;
}

/* V3.1 — contrast and legacy-component normalization */
body.trybot-authenticated .trybot-product-page .alert {
    min-height: 48px !important;
    padding: 13px 16px !important;
    color: #24384a !important;
    border: 1px solid #c9d9e7 !important;
    border-radius: 14px !important;
    background: #f6faff !important;
    box-shadow: 0 8px 22px rgba(22,45,68,.06) !important;
}

body.trybot-authenticated .trybot-product-page .alert-danger {
    color: #9f2430 !important;
    border-color: #f1b5bc !important;
    background: #fff1f3 !important;
}

body.trybot-authenticated .trybot-product-page .alert-warning {
    color: #85540a !important;
    border-color: #f2d28d !important;
    background: #fff8e8 !important;
}

body.trybot-authenticated .trybot-product-page .alert-success {
    color: #17633b !important;
    border-color: #a9dfc1 !important;
    background: #edfbf3 !important;
}

body.trybot-authenticated .trybot-product-page .alert-info {
    color: #12608a !important;
    border-color: #acd8ec !important;
    background: #eff9fe !important;
}

body.trybot-authenticated .trybot-product-page .alert .btn {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(100deg,var(--tb3-blue),var(--tb3-cyan)) !important;
}

body.trybot-authenticated .trybot-product-nav {
    color: var(--tb3-ink) !important;
    border: 1px solid rgba(150,177,199,.42) !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: var(--tb3-shadow) !important;
}

body.trybot-authenticated .trybot-product-nav-heading {
    color: #5c7184 !important;
    border-color: #dce6ee !important;
    background: #f2f7fb !important;
}

body.trybot-authenticated :is(.trybot-product-nav-button,.trybot-product-nav-link) {
    color: #31475a !important;
}

body.trybot-authenticated :is(.trybot-product-nav-button,.trybot-product-nav-link):is(:hover,:focus),
body.trybot-authenticated .trybot-product-nav-button.is-active {
    color: #075e91 !important;
    border-color: #9ddaf4 !important;
    background: #e9f7fd !important;
}

body.trybot-authenticated .trybot-product-nav-separator {
    background: #dce6ee !important;
}

body.trybot-authenticated .trybot-content-card {
    color: var(--tb3-ink) !important;
    border-color: rgba(150,177,199,.42) !important;
    background: #fff !important;
    box-shadow: var(--tb3-shadow) !important;
}

body.trybot-authenticated .trybot-content-card-header {
    color: var(--tb3-ink) !important;
    border-color: #dce6ee !important;
    background: linear-gradient(100deg,#f8fbfe,#eef6fb) !important;
}

body.trybot-authenticated .trybot-content-card-header :is(h2,h3) {
    color: var(--tb3-ink) !important;
}

body.trybot-authenticated .trybot-content-card-header p,
body.trybot-authenticated .trybot-detail-label {
    color: #607689 !important;
}

body.trybot-authenticated .trybot-detail-item {
    border-color: #dce6ee !important;
    background: #f8fbfd !important;
}

body.trybot-authenticated .trybot-detail-value {
    color: var(--tb3-ink) !important;
}

body.trybot-authenticated :is(.trybot-domains-panel-header,.trybot-invoices-panel-head) {
    color: var(--tb3-ink) !important;
    border-color: #dce6ee !important;
    background: linear-gradient(100deg,#f8fbfe,#eaf5fc) !important;
}

body.trybot-authenticated .trybot-domains-panel-heading h2,
body.trybot-authenticated .trybot-invoices-panel-heading h2 {
    color: var(--tb3-ink) !important;
}

body.trybot-authenticated .trybot-domains-panel-heading p,
body.trybot-authenticated .trybot-invoices-panel-heading p {
    color: #607689 !important;
}

body.trybot-authenticated :is(.trybot-domains-toolbar,.trybot-invoices-tabs) {
    color: var(--tb3-ink) !important;
    border-color: #dce6ee !important;
    background: #fff !important;
}

body.trybot-authenticated .trybot-domain-panel-count {
    color: #0875aa !important;
    border-color: #9fdcf5 !important;
    background: #e9f8fe !important;
}

body.trybot-authenticated .trybot-domain-status.status-active,
body.trybot-authenticated .trybot-product-status.status-active {
    color: #18794b !important;
    border-color: #a9dfc1 !important;
    background: #edfbf3 !important;
}

body.trybot-authenticated .trybot-domain-status:is(.status-pending,.status-Pending),
body.trybot-authenticated .trybot-product-status.status-pending {
    color: #986200 !important;
    border-color: #f2d28d !important;
    background: #fff8e8 !important;
}

body.trybot-authenticated .trybot-domain-status:is(.status-expired,.status-Expired,.status-cancelled,.status-Cancelled),
body.trybot-authenticated .trybot-product-status:is(.status-suspended,.status-cancelled,.status-terminated,.status-fraud) {
    color: #b02b39 !important;
    border-color: #f1b5bc !important;
    background: #fff1f3 !important;
}

body.trybot-authenticated .trybot-support-page .trybot-tickets-panel .status-open,
body.trybot-authenticated .trybot-support-page .trybot-tickets-panel .status-customer-reply {
    color: #076f9f !important;
    border-color: #9fdcf5 !important;
    background: #e9f8fe !important;
}

body.trybot-authenticated .trybot-support-page .trybot-tickets-panel .status-answered,
body.trybot-authenticated .trybot-support-page .trybot-tickets-panel .status-in-progress {
    color: #5146b8 !important;
    border-color: #c8c2fa !important;
    background: #f1efff !important;
}

body.trybot-authenticated .trybot-support-page .trybot-tickets-panel .status-closed {
    color: #526577 !important;
    border-color: #ced9e2 !important;
    background: #f0f4f7 !important;
}

body.trybot-authenticated .trybot-invoices-panel :is(.status-paid,.status-Paid) {
    color: #18794b !important;
    border-color: #a9dfc1 !important;
    background: #edfbf3 !important;
}

body.trybot-authenticated .trybot-invoices-panel :is(.status-unpaid,.status-overdue,.status-Unpaid,.status-Overdue) {
    color: #b02b39 !important;
    border-color: #f1b5bc !important;
    background: #fff1f3 !important;
}

body.trybot-authenticated .trybot-invoices-panel :is(.status-cancelled,.status-refunded,.status-collections) {
    color: #526577 !important;
    border-color: #ced9e2 !important;
    background: #f0f4f7 !important;
}

/* Unified palette for services, domains, invoices, profiles and ticket detail views. */
body.trybot-authenticated :is(.trybot-domains-page,.trybot-services-page,.trybot-invoices-page,.trybot-product-page,.trybot-view-ticket-page,.trybot-ticket-create-page,.trybot-viewinvoice-page,.trybot-details-shell,.trybot-contacts-shell,.trybot-profile-shell,.trybot-security-shell,.trybot-emails-shell) {
    color: var(--tb3-ink) !important;
    background:
        radial-gradient(circle at 92% 2%,rgba(117,103,248,.10),transparent 28%),
        radial-gradient(circle at 26% 0%,rgba(24,186,244,.10),transparent 30%),
        linear-gradient(180deg,#f7fbff,#f1f6fb) !important;
}

body.trybot-authenticated :is(.trybot-domains-page,.trybot-services-page,.trybot-invoices-page,.trybot-product-page,.trybot-view-ticket-page,.trybot-ticket-create-page,.trybot-viewinvoice-page)::before,
body.trybot-authenticated :is(.trybot-domains-page,.trybot-services-page,.trybot-invoices-page,.trybot-product-page,.trybot-view-ticket-page,.trybot-ticket-create-page,.trybot-viewinvoice-page)::after {
    opacity: .12 !important;
}

body.trybot-authenticated :is(.trybot-domains-header,.trybot-services-header,.trybot-invoices-hero,.trybot-product-hero,.trybot-ticket-hero,.trybot-ticket-create-hero,.trybot-invoice-hero,.trybot-page-head) {
    color: #fff !important;
    border: 1px solid rgba(79,199,245,.20) !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 88% 15%,rgba(117,103,248,.38),transparent 34%),
        radial-gradient(circle at 60% 115%,rgba(24,186,244,.18),transparent 36%),
        linear-gradient(120deg,#071523,#0b2336 58%,#151d43) !important;
    box-shadow: 0 22px 58px rgba(8,28,46,.18) !important;
}

body.trybot-authenticated :is(.trybot-domains-header,.trybot-services-header,.trybot-invoices-hero,.trybot-product-hero,.trybot-ticket-hero,.trybot-ticket-create-hero,.trybot-invoice-hero,.trybot-page-head) :is(h1,h2,h3,.trybot-domains-title,.trybot-services-title,.trybot-invoices-title,.trybot-product-title,.trybot-ticket-heading,.trybot-ticket-create-title,.trybot-invoice-title,.trybot-title) {
    color: #fff !important;
    font-weight: 710 !important;
}

body.trybot-authenticated :is(.trybot-domains-header,.trybot-services-header,.trybot-invoices-hero,.trybot-product-hero,.trybot-ticket-hero,.trybot-ticket-create-hero,.trybot-invoice-hero,.trybot-page-head) :is(p,.trybot-domains-description,.trybot-services-description,.trybot-invoices-subtitle,.trybot-product-subtitle,.trybot-ticket-create-subtitle,.trybot-subtitle) {
    color: #b7cad9 !important;
}

body.trybot-authenticated :is(.trybot-domains-kicker,.trybot-services-kicker,.trybot-invoices-kicker,.trybot-product-kicker,.trybot-ticket-kicker,.trybot-ticket-create-kicker,.trybot-invoice-kicker,.trybot-kicker) {
    color: #59d7ff !important;
}

body.trybot-authenticated :is(.trybot-domain-summary-card,.trybot-service-summary-card,.trybot-summary-card,.trybot-mobile-summary-card,.trybot-content-card,.trybot-card,.trybot-security-summary,.trybot-profile-grid,.trybot-ticket-form-shell,.trybot-meta-card,.trybot-reply,.trybot-invoice-document,.trybot-section-card,.trybot-party-card) {
    color: var(--tb3-ink) !important;
    border-color: rgba(162,189,211,.50) !important;
    background: rgba(255,255,255,.94) !important;
    box-shadow: var(--tb3-shadow) !important;
}

body.trybot-authenticated :is(.trybot-domains-panel,.trybot-services-panel,.trybot-invoices-panel,.trybot-product-panel,.trybot-content-card,.trybot-ticket-form-shell,.trybot-invoice-document) {
    overflow: hidden !important;
    border-color: rgba(157,187,211,.52) !important;
    background: #fff !important;
    box-shadow: var(--tb3-shadow) !important;
}

body.trybot-authenticated :is(.trybot-domains-panel-header,.trybot-services-panel-header,.trybot-invoices-panel-head,.trybot-content-card-header,.trybot-ticket-form-head,.trybot-reply-form-head,.trybot-section-head) {
    color: var(--tb3-ink) !important;
    border-color: var(--tb3-line) !important;
    background: linear-gradient(180deg,#fbfdff,#eef5fa) !important;
}

body.trybot-authenticated :is(.trybot-domain-summary-icon,.trybot-service-summary-icon,.trybot-domains-panel-icon,.trybot-services-panel-icon,.trybot-invoices-panel-icon,.trybot-content-card-icon,.trybot-security-icon,.trybot-ticket-form-icon,.trybot-section-icon) {
    color: #087fb9 !important;
    border-color: #cae9f8 !important;
    background: linear-gradient(145deg,#e1f6ff,#eef0ff) !important;
}

body.trybot-authenticated :is(.trybot-domain-summary-value,.trybot-service-summary-value,.trybot-summary-value,.trybot-mobile-summary-value,.trybot-detail-value,.trybot-meta-value,.trybot-document-balance-value) {
    color: var(--tb3-ink) !important;
    font-weight: 720 !important;
}

body.trybot-authenticated :is(.trybot-domain-summary-label,.trybot-service-summary-label,.trybot-summary-label,.trybot-mobile-summary-label,.trybot-detail-label,.trybot-meta-label) {
    color: var(--tb3-copy) !important;
}

body.trybot-authenticated :is(.trybot-domains-table-container,.trybot-services-table-wrap,.trybot-invoices-table-scroll,.trybot-mobile-invoice-table,.trybot-items-table-wrap,.trybot-ledger-table-wrap) :is(table,thead,tbody,tr,th,td) {
    color: var(--tb3-ink) !important;
    border-color: #e0e8ef !important;
    background: #fff !important;
}

body.trybot-authenticated :is(.trybot-domains-table-container,.trybot-services-table-wrap,.trybot-invoices-table-scroll,.trybot-mobile-invoice-table,.trybot-items-table-wrap,.trybot-ledger-table-wrap) thead th {
    color: #42586a !important;
    background: #eef5fa !important;
}

body.trybot-authenticated :is(.trybot-domains-table-container,.trybot-services-table-wrap,.trybot-invoices-table-scroll,.trybot-mobile-invoice-table) tbody tr:hover td {
    background: #f2f9fd !important;
}

body.trybot-authenticated :is(.trybot-domain-link,.trybot-service-product,.trybot-invoice-number,.trybot-ticket-number,.trybot-product-nav-link) {
    color: #087fb9 !important;
}

body.trybot-authenticated :is(.trybot-domains-btn-primary,.trybot-invoices-btn-primary,.trybot-primary-btn,.trybot-submit-btn,.trybot-success-btn,.trybot-ticket-submit,.trybot-reply-submit,.trybot-action-btn-primary) {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(100deg,var(--tb3-blue),var(--tb3-cyan)) !important;
    box-shadow: 0 10px 24px rgba(22,137,245,.18) !important;
}

body.trybot-authenticated :is(.trybot-field,.trybot-domain-search,.trybot-service-search,.trybot-invoices-search-wrapper input,.trybot-mobile-search input) {
    color: var(--tb3-ink) !important;
    border-color: #cad9e6 !important;
    background: #f7fbff !important;
}

@media (max-width: 760px) {
    body.trybot-authenticated :is(.trybot-domains-header,.trybot-services-header,.trybot-invoices-hero,.trybot-product-hero,.trybot-ticket-hero,.trybot-ticket-create-hero,.trybot-invoice-hero,.trybot-page-head) {
        padding: 24px 20px !important;
        border-radius: 20px !important;
    }

    body.trybot-authenticated :is(.trybot-domains-title,.trybot-services-title,.trybot-invoices-title,.trybot-product-title,.trybot-ticket-heading,.trybot-ticket-create-title,.trybot-invoice-title,.trybot-title) {
        font-size: clamp(28px,9vw,38px) !important;
        line-height: 1.04 !important;
    }
}
