
/* =========================================================
   CipherNode HESK Customer Theme
   Built from the default HESK3 theme.
   Matches ciphernode.cloud black/zinc/cyan branding.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --cn-bg: #0a0a0a;
    --cn-bg-deep: #050505;
    --cn-card: #111113;
    --cn-card-2: #18181b;
    --cn-border: #27272a;
    --cn-border-soft: #3f3f46;
    --cn-accent: #22d3ee;
    --cn-accent-dark: #2596be;
    --cn-accent-bright: #00E5FF;
    --cn-text: #e5e5e5;
    --cn-muted: #a1a1aa;
    --cn-muted-2: #71717a;
    --cn-success: #10b981;
    --cn-warning: #eab308;
    --cn-danger: #ef4444;

    --primary: #22d3ee !important;
    --secondary: #22d3ee !important;
    --surface: #111113 !important;
    --background: #0a0a0a !important;
    --black-1: #e5e5e5 !important;
    --gray-1: #f4f4f5 !important;
    --gray-2: #e5e5e5 !important;
    --gray-3: #d4d4d8 !important;
    --gray-4: #a1a1aa !important;
    --gray-5: #a1a1aa !important;
    --gray-6: #71717a !important;
    --gray-7: #52525b !important;
    --white-1: #111113 !important;
    --white-2: #18181b !important;
    --white-3: #18181b !important;
    --white-4: #27272a !important;
    --white-5: #27272a !important;
    --white-6: #27272a !important;
    --white-7: #3f3f46 !important;
    --white-8: #3f3f46 !important;
    --white-9: #52525b !important;
}

html,
body,
body.cust-help {
    background: var(--cn-bg) !important;
    color: var(--cn-text) !important;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(circle at 20% 15%, rgba(34, 211, 238, .08), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(37, 150, 190, .08), transparent 30%),
        linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}

body,
p,
div,
span,
li,
td,
th,
label,
small {
    color: var(--cn-text) !important;
}

a {
    color: var(--cn-accent) !important;
}

a:hover,
a:focus {
    color: var(--cn-accent-bright) !important;
}

h1, h2, h3, h4, h5, h6,
.search__title,
.article__heading,
.navlink__title,
.preview__title,
.title,
.block__title {
    color: #ffffff !important;
    letter-spacing: -0.03em;
}

.wrapper,
.main,
.main__content,
.content,
.contr {
    background: transparent !important;
}

.contr {
    max-width: 1200px !important;
}

/* CipherNode custom top bars */
.cn-support-strip,
.cn-support-nav,
.cn-support-footer {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.cn-support-strip {
    background: #0a0a0a !important;
    border-bottom: 1px solid #27272a !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
}

.cn-support-inner {
    max-width: 1280px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
}

.cn-support-strip-left,
.cn-support-strip-right,
.cn-support-links {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

.cn-support-pill {
    padding: 7px 16px !important;
    background: #111113 !important;
    border: 1px solid #27272a !important;
    border-radius: 999px !important;
    color: #e5e5e5 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.cn-support-nav {
    background: rgba(10, 10, 10, .96) !important;
    border-bottom: 1px solid #27272a !important;
    padding: 18px 24px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    backdrop-filter: blur(12px);
}

.cn-support-brand {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    font-size: 28px !important;
    letter-spacing: -0.05em !important;
    white-space: nowrap !important;
}

.cn-support-brand img {
    height: 52px !important;
    width: auto !important;
    object-fit: contain !important;
}

.cn-support-links a,
.header__nav a,
.header__lang select {
    color: #e5e5e5 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    transition: .2s ease !important;
}

.cn-support-links a:hover,
.header__nav a:hover {
    color: #22d3ee !important;
    text-decoration: none !important;
}

.cn-support-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.cn-support-actions .header__nav,
.cn-support-actions .header__lang {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
}

.cn-support-actions .nav-item a,
.cn-support-actions .header__nav a,
.profile__item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 18px !important;
    background: #ffffff !important;
    color: #000000 !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    border: 1px solid #ffffff !important;
}

.cn-support-actions .nav-item a:hover,
.cn-support-actions .header__nav a:hover {
    background: #22d3ee !important;
    border-color: #22d3ee !important;
    color: #000000 !important;
}

/* Hide original HESK header because custom nav replaces it */
.header {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

.header .contr,
.header__inner,
.header__logo {
    display: none !important;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #0a0a0a !important;
    border-bottom: 1px solid #27272a !important;
}

.breadcrumbs__inner,
.breadcrumbs__inner a,
.breadcrumbs__inner span,
.breadcrumbs__inner .last {
    color: #a1a1aa !important;
}

.breadcrumbs svg,
.icon-chevron-right {
    fill: #71717a !important;
}

/* Landing search */
.help-search {
    background: linear-gradient(135deg, rgba(17, 17, 19, .96), rgba(5, 5, 5, .96)) !important;
    border: 1px solid #27272a !important;
    border-radius: 28px !important;
    padding: 72px 30px !important;
    margin: 42px 0 32px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35) !important;
}

.search__title {
    font-size: clamp(34px, 5vw, 64px) !important;
    font-weight: 900 !important;
    margin-bottom: 24px !important;
}

/* Search inputs */
.search,
.search__field,
.kb-search,
.kb-search__input,
.search input,
input[type='text'],
input[type='email'],
input[type='password'],
input[type='search'],
textarea,
select,
.form-control,
.selectize-input {
    background: #0a0a0a !important;
    border: 1px solid #27272a !important;
    color: #e5e5e5 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus,
.selectize-input.focus {
    border-color: #22d3ee !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .16) !important;
    outline: none !important;
}

::placeholder {
    color: #71717a !important;
}

.selectize-dropdown,
.dropdown-list,
.profile__menu,
.dropdown-menu {
    background: #111113 !important;
    border: 1px solid #27272a !important;
    color: #e5e5e5 !important;
    box-shadow: 0 24px 40px rgba(0,0,0,.45) !important;
}

.selectize-dropdown-content [data-selectable],
.dropdown-list a,
.profile__menu a {
    color: #e5e5e5 !important;
}

.selectize-dropdown-content [data-selectable]:hover,
.dropdown-list a:hover,
.profile__menu a:hover {
    background: #18181b !important;
    color: #22d3ee !important;
}

/* Main public action tiles */
.nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
    margin: 32px 0 !important;
}

.navlink,
.preview,
.article,
.block,
.form,
.ticket,
.ticket__body,
.ticket__params,
.table,
.box,
.panel,
.modal,
.card,
.reply,
.message {
    background: #111113 !important;
    border: 1px solid #27272a !important;
    color: #e5e5e5 !important;
    border-radius: 18px !important;
    box-shadow: none !important;
}

.navlink {
    padding: 26px !important;
    transition: .2s ease !important;
}

.navlink:hover,
.preview:hover {
    background: #18181b !important;
    border-color: #22d3ee !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}

.navlink__descr,
.lightgrey,
.grey,
.description,
.hint,
.help-block,
.text-muted {
    color: #a1a1aa !important;
}

.icon-in-circle {
    background: rgba(34, 211, 238, .14) !important;
    border: 1px solid rgba(34, 211, 238, .35) !important;
    color: #22d3ee !important;
}

.icon-in-circle svg,
.icon {
    fill: #22d3ee !important;
}

/* KB article sections */
.article {
    padding: 30px !important;
}

.article__heading a {
    color: #ffffff !important;
}

.tabbed__head_tabs li {
    background: #0a0a0a !important;
    border: 1px solid #27272a !important;
    color: #a1a1aa !important;
    border-radius: 999px !important;
}

.tabbed__head_tabs li.current,
.tabbed__head_tabs li:hover {
    background: #22d3ee !important;
    border-color: #22d3ee !important;
    color: #000000 !important;
}

.tabbed__head_tabs li.current span,
.tabbed__head_tabs li:hover span {
    color: #000000 !important;
}

.preview {
    padding: 20px !important;
    margin-bottom: 14px !important;
}

/* Buttons */
.btn,
button,
input[type='submit'],
input[type='button'],
a.btn,
.btn-full,
.btn--blue-border,
.btn--blue,
.btn-border {
    border-radius: 999px !important;
    font-weight: 800 !important;
    transition: .2s ease !important;
    box-shadow: none !important;
}

.btn--blue,
.btn-full,
button[type='submit'],
input[type='submit'],
.btn.btn-full,
.btn.btn--blue,
.btn--blue-border:hover {
    background: #22d3ee !important;
    border: 1px solid #22d3ee !important;
    color: #000000 !important;
}

.btn--blue:hover,
.btn-full:hover,
button[type='submit']:hover,
input[type='submit']:hover,
.btn.btn-full:hover,
.btn.btn--blue:hover {
    background: #2596be !important;
    border-color: #2596be !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn--blue-border,
.btn-border,
.btn.btn--blue-border {
    background: #111113 !important;
    border: 1px solid #27272a !important;
    color: #e5e5e5 !important;
}

.btn--blue-border:hover,
.btn-border:hover,
.btn.btn--blue-border:hover {
    background: #18181b !important;
    border-color: #22d3ee !important;
    color: #ffffff !important;
}

/* Forms and ticket pages */
.form-group label,
.form-label,
.required {
    color: #e5e5e5 !important;
}

.ticket__params,
.params,
.block--head,
.block--body,
.block__head,
.block__body,
.form-group,
textarea,
.selectize-control {
    border-color: #27272a !important;
}

hr,
.separator {
    border-color: #27272a !important;
}

/* Tables */
table,
thead,
tbody,
tr,
th,
td,
.table,
.table tr,
.table td,
.table th {
    background: #111113 !important;
    border-color: #27272a !important;
    color: #e5e5e5 !important;
}

tr:hover,
.table tr:hover,
.table tr:hover td {
    background: #18181b !important;
}

/* Alerts */
.alert,
.hesk-message,
.notification-bar,
.message,
.info,
.success,
.warning,
.error {
    background: #111113 !important;
    border: 1px solid #27272a !important;
    color: #e5e5e5 !important;
    border-radius: 14px !important;
}

.success,
.notification-bar.green {
    border-color: #10b981 !important;
    background: rgba(16,185,129,.12) !important;
}

.warning,
.notification-bar.orange {
    border-color: #eab308 !important;
    background: rgba(234,179,8,.12) !important;
}

.error,
.notification-bar.red {
    border-color: #ef4444 !important;
    background: rgba(239,68,68,.12) !important;
}

/* Customer profile dropdown */
.user__ava {
    background: #22d3ee !important;
    color: #000000 !important;
}

.user__name p,
.user__name span {
    color: #e5e5e5 !important;
}

/* Footer */
.footer {
    background: #050505 !important;
    border-top: 1px solid #27272a !important;
    color: #a1a1aa !important;
    margin-top: 40px !important;
}

.footer a,
.footer span,
.footer p {
    color: #a1a1aa !important;
}

.cn-support-footer {
    background: #050505 !important;
    border-top: 1px solid #27272a !important;
    padding: 48px 24px !important;
}

.cn-support-footer .cn-support-brand {
    font-size: 22px !important;
}

.cn-support-footer p {
    color: #a1a1aa !important;
    max-width: 420px !important;
    line-height: 1.7 !important;
    margin-top: 12px !important;
}

/* Mobile */
@media (max-width: 900px) {
    .cn-support-inner,
    .cn-support-strip-left,
    .cn-support-strip-right {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .cn-support-nav {
        position: relative !important;
    }

    .cn-support-links,
    .cn-support-actions {
        width: 100% !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }

    .cn-support-brand {
        font-size: 24px !important;
    }

    .cn-support-brand img {
        height: 42px !important;
    }

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

    .help-search {
        padding: 48px 18px !important;
        border-radius: 22px !important;
    }
}


/* =========================================================
   Clean navbar update
   - Removes the top United States/contact strip
   - Makes navbar brand text-only
   - Places the CipherNode logo inside the homepage hero
   ========================================================= */
.cn-support-strip {
    display: none !important;
}

.cn-support-nav {
    top: 0 !important;
    padding: 20px 24px !important;
}

.cn-support-brand-text {
    gap: 0 !important;
    font-size: 30px !important;
    letter-spacing: -0.055em !important;
}

.cn-support-nav .cn-support-brand img {
    display: none !important;
}

.cn-help-logo {
    display: block !important;
    width: min(360px, 75vw) !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto 28px !important;
}

.help-search {
    text-align: center !important;
}

.help-search .search__title {
    margin-top: 0 !important;
}

@media (max-width: 900px) {
    .cn-support-brand-text {
        font-size: 26px !important;
    }

    .cn-help-logo {
        width: min(280px, 80vw) !important;
        margin-bottom: 22px !important;
    }
}


/* =========================================================
   Hero logo cleanup
   - Smaller homepage hero logo
   - Hide/remove the Hello text below it
   ========================================================= */
.page-index .help-search {
    padding: 72px 24px !important;
    min-height: auto !important;
}

.page-index .cn-help-logo {
    width: min(520px, 80vw) !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
}

.page-index .help-search .search__title {
    display: none !important;
}

@media (max-width: 768px) {
    .page-index .help-search {
        padding: 48px 18px !important;
    }

    .page-index .cn-help-logo {
        width: min(340px, 85vw) !important;
    }
}

/* =========================================================
   CipherNode customer-side alert/message cleanup
   Fixes bright yellow/white HESK notice boxes on login/register/ticket pages
   ========================================================= */

.alert,
.notice,
.notification,
.message,
.msg,
.info,
.success,
.warning,
.error,
.note,
.hesk-message,
.hesk-alert,
[class*="alert"],
[class*="notice"],
[class*="notification"],
[class*="message"],
[class*="warning"],
[class*="success"],
[class*="error"],
[class*="note"] {
    background: #111113 !important;
    background-color: #111113 !important;
    border: 1px solid #27272a !important;
    color: #e5e5e5 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

/* HESK sometimes uses pale inline colors for notes/warnings */
[style*="background: #FFFF"],
[style*="background:#FFFF"],
[style*="background-color: #FFFF"],
[style*="background-color:#FFFF"],
[style*="background: #fff"],
[style*="background:#fff"],
[style*="background-color: #fff"],
[style*="background-color:#fff"],
[style*="background: rgb(255"],
[style*="background-color: rgb(255"],
[style*="background: yellow"],
[style*="background-color: yellow"] {
    background: #111113 !important;
    background-color: #111113 !important;
    border-color: #27272a !important;
    color: #e5e5e5 !important;
}

/* Warning/note style, like the login page notice */
.warning,
.alert-warning,
.notice-warning,
.note,
[class*="warning"],
[class*="note"] {
    background: rgba(234, 179, 8, 0.10) !important;
    border-left: 4px solid #eab308 !important;
    border-top-color: #27272a !important;
    border-right-color: #27272a !important;
    border-bottom-color: #27272a !important;
    color: #e5e5e5 !important;
}

.warning *,
.alert-warning *,
.notice-warning *,
.note *,
[class*="warning"] *,
[class*="note"] * {
    color: #e5e5e5 !important;
}

.warning a,
.alert-warning a,
.notice-warning a,
.note a,
[class*="warning"] a,
[class*="note"] a {
    color: #22d3ee !important;
    font-weight: 700 !important;
}

/* Success/error/info still match the dark theme */
.success,
.alert-success,
.notice-success,
[class*="success"] {
    background: rgba(16, 185, 129, 0.10) !important;
    border-left: 4px solid #10b981 !important;
    color: #e5e5e5 !important;
}

.error,
.alert-danger,
.alert-error,
.notice-error,
[class*="error"],
[class*="danger"] {
    background: rgba(239, 68, 68, 0.10) !important;
    border-left: 4px solid #ef4444 !important;
    color: #e5e5e5 !important;
}

.info,
.alert-info,
.notice-info,
[class*="info"] {
    background: rgba(34, 211, 238, 0.10) !important;
    border-left: 4px solid #22d3ee !important;
    color: #e5e5e5 !important;
}

/* Make headings inside message boxes readable */
.alert h1, .alert h2, .alert h3, .alert h4,
.notice h1, .notice h2, .notice h3, .notice h4,
.notification h1, .notification h2, .notification h3, .notification h4,
.message h1, .message h2, .message h3, .message h4,
.note h1, .note h2, .note h3, .note h4 {
    color: #ffffff !important;
}

/* Login/register page notice spacing */
.login-page .notice,
.login-page .alert,
.register-page .notice,
.register-page .alert,
.account-page .notice,
.account-page .alert {
    max-width: 100% !important;
    margin: 18px auto 28px auto !important;
    padding: 18px 22px !important;
}


/* =========================================================
   Force dark HESK customer messages / login notes
   This targets the real HESK output:
   .main__content.notice-flash > .notification.orange.browser-default
   ========================================================= */

.main__content.notice-flash,
.main__content.notice-flash.browser-default,
.notice-flash,
.notice-flash.browser-default {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.main__content.notice-flash > .notification,
.main__content.notice-flash > .notification.browser-default,
.notice-flash > .notification,
.notice-flash > .notification.browser-default,
.notification.browser-default,
.notification.orange.browser-default,
.notification.white.browser-default,
.notification.green.browser-default,
.notification.blue.browser-default,
.notification.red.browser-default,
.cn-notice {
    background: #111113 !important;
    background-color: #111113 !important;
    border: 1px solid #27272a !important;
    color: #e5e5e5 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    padding: 20px 24px !important;
}

.main__content.notice-flash > .notification::before,
.notice-flash > .notification::before,
.notification.browser-default::before,
.cn-notice::before {
    display: none !important;
    content: none !important;
}

.main__content.notice-flash > .notification.orange,
.notification.orange.browser-default,
.cn-notice-orange {
    border-left: 5px solid #eab308 !important;
}

.main__content.notice-flash > .notification.green,
.notification.green.browser-default,
.cn-notice-green {
    border-left: 5px solid #10b981 !important;
}

.main__content.notice-flash > .notification.blue,
.notification.blue.browser-default,
.cn-notice-blue {
    border-left: 5px solid #22d3ee !important;
}

.main__content.notice-flash > .notification.red,
.notification.red.browser-default,
.cn-notice-red {
    border-left: 5px solid #ef4444 !important;
}

.main__content.notice-flash > .notification.white,
.notification.white.browser-default,
.cn-notice-white {
    border-left: 5px solid #22d3ee !important;
}

.notification.browser-default *,
.cn-notice *,
.notice-flash .notification * {
    color: #e5e5e5 !important;
}

.notification.browser-default p,
.notification.browser-default p *,
.cn-notice p,
.cn-notice p *,
.notice-flash .notification p,
.notice-flash .notification p * {
    color: #ffffff !important;
}

.notification.browser-default a,
.cn-notice a,
.notice-flash .notification a {
    color: #22d3ee !important;
    font-weight: 700 !important;
}

.notification.browser-default a:hover,
.cn-notice a:hover,
.notice-flash .notification a:hover {
    color: #ffffff !important;
}

/* Catch the specific pale yellow note even if HESK adds inline styles */
div[role="alert"].notification.orange,
div[role="alert"].notification.orange.browser-default,
div[role="status"].notification,
div[role="log"].notification {
    background: #111113 !important;
    background-color: #111113 !important;
    color: #e5e5e5 !important;
}


/* Footer brand: logo only */
.cn-support-footer .cn-support-brand-logo-only {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

.cn-support-footer .cn-support-brand-logo-only img {
    height: 52px !important;
    width: auto !important;
    display: block !important;
}


/* Move HESK attribution to bottom of footer */
.cn-support-powered-by {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 36px;
    padding-top: 18px;
    text-align: center;
}

.cn-support-powered-by .footer,
.cn-support-powered-by .text-center {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    background: transparent !important;
}

.cn-support-powered-by p {
    margin: 0 !important;
    color: #a1a1aa !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.cn-support-powered-by a,
.cn-support-powered-by .link,
.cn-support-powered-by .font-weight-bold {
    color: #d4d4d8 !important;
    text-decoration: none !important;
}

.cn-support-powered-by a:hover,
.cn-support-powered-by .link:hover {
    color: #22d3ee !important;
}

.cn-support-powered-by br {
    display: none !important;
}
