/*
 * Codesaint Dark Theme for osTicket
 * Pixel-matched to codesaint.in production design
 * Colors: #09090f bg, #060609 footer, #f37649 primary, #fbbf24 gold
 * Font: Poppins
 */

/* ===== GLOBAL RESET ===== */
html, body {
    background: #09090f !important;
    color: #94a3b8 !important;
    font-family: 'Poppins', 'Helvetica Neue', sans-serif !important;
}

body, input, select, textarea, button, .form-control {
    font-family: 'Poppins', 'Helvetica Neue', sans-serif !important;
}

*, *::before, *::after {
    border-color: rgba(255,255,255,0.06) !important;
}

a, .link { color: #f37649 !important; text-decoration: none !important; border-bottom: none !important; }
a:hover, .link:hover { color: #fbbf24 !important; border-bottom: none !important; }

h1 { color: #f37649 !important; font-weight: 700 !important; font-size: 28px !important; }
h2, h3, h4, h5, h6, .subject { color: #f1f5f9 !important; font-weight: 600 !important; }

hr { border-top: 1px solid rgba(255,255,255,0.06) !important; }
.faded { color: #475569 !important; }
strong, b { color: #f1f5f9 !important; }
p { color: #94a3b8; }

::selection { background: #f37649 !important; color: white !important; }
::-moz-selection { background: #f37649 !important; color: white !important; }

/* ===== HIDE OLD ELEMENTS ===== */
body > nav.navbar { display: none !important; }
#header { display: none !important; }
.search-area-wrapper { display: none !important; }
#footer { display: none !important; }

/* ===== CS DARK BODY ===== */
.cs-dark-body {
    padding-top: 112px !important;
    margin: 0 !important;
}

/* ===== CODESAINT NAVBAR ===== */
.cs-navbar {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(9,9,15,0.88) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    height: 72px;
}

.cs-navbar-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 72px;
}

.cs-navbar-brand img {
    height: 36px;
    filter: brightness(1.2);
    transition: opacity 0.2s ease;
}

.cs-navbar-brand:hover img {
    opacity: 0.9;
}

.cs-nav-links {
    list-style: none !important;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.cs-nav-link {
    color: #94a3b8 !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    padding: 8px clamp(10px, 1vw, 16px) !important;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    border-bottom: none !important;
    white-space: nowrap;
    position: relative;
}

.cs-nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #f37649;
    border-radius: 1px;
    transition: width 0.2s ease;
}

.cs-nav-link:hover {
    color: #f1f5f9 !important;
    background: transparent;
}

.cs-nav-link:hover::after {
    width: 60%;
}

.cs-nav-link.cs-nav-active {
    color: #f37649 !important;
}

.cs-nav-link.cs-nav-active::after {
    width: 60%;
}

.cs-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
}

.cs-nav-welcome {
    color: #f1f5f9 !important;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cs-btn-ghost {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 24px !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 9999px !important;
    color: #f1f5f9 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease;
    background: transparent !important;
}

.cs-btn-ghost:hover {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.25) !important;
    color: #f37649 !important;
}

.cs-mobile-toggle {
    display: none;
    background: none !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 8px !important;
    color: #f1f5f9 !important;
    padding: 8px 12px !important;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cs-mobile-toggle:hover {
    border-color: rgba(255,255,255,0.25) !important;
    background: rgba(255,255,255,0.04) !important;
}

/* Navbar collapse — visible on desktop, toggled on mobile */
.cs-nav-collapse {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991px) {
    .cs-mobile-toggle { display: block; }
    .cs-navbar-inner {
        display: flex !important;
        flex-wrap: wrap;
    }
    .cs-navbar { height: auto; min-height: 72px; }
    .cs-navbar-brand { flex: 1; }
    .cs-nav-collapse {
        display: none;
        width: 100%;
        order: 10;
        padding: 16px 0;
        border-top: 1px solid rgba(255,255,255,0.06);
        flex-direction: column;
        align-items: stretch;
    }
    .cs-nav-collapse.cs-nav-open {
        display: flex;
    }
    .cs-nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }
    .cs-nav-link::after { display: none; }
    .cs-nav-actions {
        display: none;
        width: 100%;
        order: 11;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-bottom: 16px;
    }
    .cs-nav-collapse.cs-nav-open ~ .cs-nav-actions {
        display: flex;
    }
    .cs-btn-ghost { justify-content: center; }
    .cs-dark-body { padding-top: 72px !important; }
    .cs-subnav { position: relative; top: 0; margin-top: 72px; }
}

/* ===== SUPPORT SUB-NAVIGATION ===== */
.cs-subnav {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    z-index: 999;
    background: rgba(17,17,23,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    height: 40px;
}

.cs-subnav-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    gap: 4px;
    overflow-x: auto;
}

.cs-subnav-link {
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 6px 14px !important;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.cs-subnav-link:hover {
    color: #f1f5f9 !important;
    background: rgba(255,255,255,0.04);
}

.cs-subnav-link.cs-subnav-active {
    color: #f37649 !important;
    background: rgba(243,118,73,0.08);
}

/* ===== HERO SEARCH ===== */
.cs-hero-search {
    position: relative;
    overflow: hidden;
    padding: 80px 24px 64px;
    background: #09090f;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.cs-hero-mesh {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(243,118,73,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(56,189,248,0.08) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 80%, rgba(243,118,73,0.06) 0%, transparent 50%);
    pointer-events: none;
    animation: meshDrift 12s ease-in-out infinite alternate;
}

@keyframes meshDrift {
    0% { opacity: 0.8; transform: scale(1) rotate(0deg); }
    100% { opacity: 1; transform: scale(1.05) rotate(2deg); }
}

.cs-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    animation: heroFadeIn 0.8s ease-out forwards;
}

@keyframes heroFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.cs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(243,118,73,0.1);
    border: 1px solid rgba(243,118,73,0.2) !important;
    color: #f37649 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 24px;
}

.cs-hero-badge i {
    color: #f37649 !important;
}

.cs-hero-title {
    font-size: clamp(2rem, 5vw, 2.75rem) !important;
    font-weight: 800 !important;
    color: #f1f5f9 !important;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.cs-gradient-text {
    background: linear-gradient(90deg, #f37649 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cs-hero-subtitle {
    color: #94a3b8 !important;
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 36px;
    text-align: center !important;
}

.cs-search-form {
    max-width: 600px;
    margin: 0 auto;
}

.cs-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.cs-search-wrapper:focus-within {
    border-color: #f37649 !important;
    box-shadow: 0 0 0 4px rgba(243,118,73,0.1);
}

.cs-search-icon {
    position: absolute;
    left: 18px;
    color: #64748b !important;
    font-size: 16px;
    pointer-events: none;
}

.cs-search-input {
    flex: 1;
    padding: 16px 16px 16px 48px !important;
    background: transparent !important;
    border: none !important;
    color: #f1f5f9 !important;
    font-size: 15px !important;
    outline: none !important;
    box-shadow: none !important;
}

.cs-search-input::placeholder {
    color: #64748b !important;
}

.cs-search-btn {
    padding: 12px 28px !important;
    margin: 6px !important;
    background: #f37649 !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cs-search-btn:hover {
    background: #e55c2f !important;
    box-shadow: 0 0 20px rgba(243,118,73,0.3) !important;
}

@media (max-width: 576px) {
    .cs-hero-title { font-size: 1.75rem !important; }
    .cs-hero-search { padding: 60px 16px 40px; }
    .cs-search-btn { padding: 10px 20px !important; }
}

/* ===== ALERTS ===== */
.cs-alert {
    max-width: 1200px;
    margin: 16px auto;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cs-alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: #4ade80 !important; }
.cs-alert-warning { background: rgba(234,179,8,0.1); border: 1px solid rgba(234,179,8,0.2); color: #facc15 !important; }
.cs-alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #f87171 !important; }

/* Hide old osTicket bars */
.notice_bar, .warning_bar, .error_bar { display: none !important; }

/* Bootstrap alerts */
.alert { border-radius: 12px !important; }
.alert-primary { background: rgba(243,118,73,0.1) !important; border: 1px solid rgba(243,118,73,0.2) !important; color: #f37649 !important; }
.alert-primary a { color: #fbbf24 !important; font-weight: 600 !important; }
.alert-success, #msg_notice { background: rgba(34,197,94,0.1) !important; border: 1px solid rgba(34,197,94,0.2) !important; color: #4ade80 !important; border-radius: 12px !important; }
.alert-danger { background: rgba(239,68,68,0.1) !important; border: 1px solid rgba(239,68,68,0.2) !important; color: #f87171 !important; }
.alert-warning { background: rgba(234,179,8,0.1) !important; border: 1px solid rgba(234,179,8,0.2) !important; color: #facc15 !important; }
.alert-info { background: rgba(56,189,248,0.1) !important; border: 1px solid rgba(56,189,248,0.2) !important; color: #38bdf8 !important; }

/* ===== MAIN CONTAINER ===== */
#container-fluid {
    background: #09090f !important;
    padding-top: 0 !important;
}

#container {
    background: #09090f !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 32px 24px !important;
    box-shadow: none !important;
}

/* #clientLogin form — override one/theme.css light bg + lock icon */
#clientLogin {
    background: rgba(255,255,255,0.03) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    padding: 32px !important;
    color: #94a3b8 !important;
}

/* Form layout — table-row to flex */
#clientLogin div[style*="display:table-row"],
div[style*="display:table-row"] {
    display: flex !important;
    gap: 24px !important;
    flex-wrap: wrap !important;
}

#clientLogin .login-box {
    display: block !important;
    width: 100% !important;
    max-width: 400px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    flex: 1 !important;
    min-width: 280px !important;
}

#clientLogin .instructions {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: 1 !important;
    min-width: 200px !important;
    color: #94a3b8 !important;
}

/* Override one/theme.css #clientLogin div input { background: #fff } */
#clientLogin div input,
#clientLogin div textarea,
#clientLogin div select {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    color: #f1f5f9 !important;
    border-radius: 12px !important;
}

#clientLogin div input:focus,
#clientLogin div textarea:focus {
    border-color: #f37649 !important;
    box-shadow: 0 0 0 3px rgba(243,118,73,0.15) !important;
}

#clientLogin div label {
    color: #f1f5f9 !important;
}

#clientLogin strong {
    color: #ef4444 !important;
}

#clientLogin p {
    color: #94a3b8 !important;
}

/* Same fix for #ticketForm */
#ticketForm {
    background: rgba(255,255,255,0.03) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    padding: 32px !important;
}

#ticketForm div input,
#ticketForm div textarea,
#ticketForm div select {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    color: #f1f5f9 !important;
    border-radius: 12px !important;
}

#ticketForm div label {
    color: #f1f5f9 !important;
}

/* ===== CARDS — Glass Card Style ===== */
.card, .jumbotron {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 16px !important;
    transition: all 0.3s ease;
    color: #94a3b8 !important;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(243,118,73,0.04) !important;
}

.card-body {
    padding: 28px !important;
    background: transparent !important;
}

.card-title {
    color: #f1f5f9 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
}

.card-title a {
    color: #f1f5f9 !important;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #f37649 !important;
}

.card-text {
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.card-link {
    color: #f37649 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.card-link:hover {
    gap: 10px;
    color: #fbbf24 !important;
}

/* Card icons — glow icon style from codesaint.in */
.card-icon {
    width: 56px !important;
    height: 56px !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 16px !important;
    background: linear-gradient(135deg, rgba(243,118,73,0.15) 0%, rgba(243,118,73,0.05) 100%) !important;
    border: 1px solid rgba(243,118,73,0.2) !important;
}

.card-icon i {
    font-size: 22px !important;
    color: #f37649 !important;
}

/* SVG placeholder images — dark theme compatible */
.card .bd-placeholder-img rect,
svg.bd-placeholder-img rect,
.card-img-top rect {
    fill: rgba(255,255,255,0.04) !important;
}

.card .bd-placeholder-img text,
svg.bd-placeholder-img text,
.card-img-top text {
    fill: #64748b !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
}

svg.bd-placeholder-img,
.card-img-top.bd-placeholder-img {
    background: rgba(255,255,255,0.03) !important;
}

.card-img-top {
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

/* Card deck */
.card-deck {
    margin-bottom: 32px !important;
}

/* New Ticket CTA card */
.card.new-ticket {
    background: linear-gradient(135deg, rgba(243,118,73,0.08), rgba(243,118,73,0.02)) !important;
    border: 1px solid rgba(243,118,73,0.15) !important;
}

.card.new-ticket:hover {
    border-color: rgba(243,118,73,0.3) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(243,118,73,0.08) !important;
}

.card.new-ticket .featured-header {
    color: #f1f5f9 !important;
    font-size: 20px !important;
}

.card.new-ticket .featured-tag-line {
    color: #94a3b8 !important;
}

/* ===== FEATURED SECTIONS ===== */
.featured-header, .search-header {
    color: #f1f5f9 !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    letter-spacing: -0.01em;
}

.featured-tag-line, .search-tag-line {
    color: #64748b !important;
    font-size: 15px !important;
    line-height: 1.6;
}

.featured-block {
    padding: 40px 0 !important;
}

.widget-top {
    background: transparent !important;
}

/* ===== POPULAR FAQ (KB page) ===== */
.popular-faq {
    padding: 8px 0;
}

.popular-faq a {
    color: #94a3b8 !important;
    font-size: 14px;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: block;
    padding: 6px 0;
}

.popular-faq a:hover {
    color: #f37649 !important;
    padding-left: 8px;
}

/* KB list */
#kb {
    list-style: none !important;
    padding: 0 !important;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-success, .btn-info,
input[type="submit"], input[type="button"] {
    background: #f37649 !important;
    color: white !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 12px 32px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.btn-primary:hover, .btn-success:hover,
input[type="submit"]:hover, input[type="button"]:hover {
    background: #e55c2f !important;
    box-shadow: 0 0 24px rgba(243,118,73,0.3) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

.btn-secondary, .btn-outline-secondary, .btn-default {
    background: transparent !important;
    color: #f37649 !important;
    border: 2px solid #f37649 !important;
    border-radius: 9999px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.btn-secondary:hover, .btn-outline-secondary:hover, .btn-default:hover {
    background: #f37649 !important;
    color: white !important;
}

.btn-danger { background: #ef4444 !important; border: none !important; border-radius: 9999px !important; }
.btn-link { color: #f37649 !important; font-weight: 500 !important; }
.btn-link:hover { color: #fbbf24 !important; }

/* Open a New Ticket button — auto width, no stretching */
.card.new-ticket .btn-primary,
.card.new-ticket a.btn {
    width: auto !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center;
    padding: 12px 32px !important;
}

/* ===== FORMS ===== */
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="url"], input[type="number"],
input[type="search"], textarea, select, .form-control {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    color: #f1f5f9 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
}

input:focus, textarea:focus, select:focus, .form-control:focus {
    border-color: #f37649 !important;
    box-shadow: 0 0 0 3px rgba(243,118,73,0.15) !important;
    outline: none !important;
}

::placeholder { color: #64748b !important; }
::-webkit-input-placeholder { color: #64748b !important; }

label, .col-form-label {
    color: #f1f5f9 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

.required { color: #f37649 !important; }

/* Login box */
.jumbotron.login-box, .jumbotron {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 16px !important;
    padding: 32px !important;
}

/* osTicket login-box (check ticket status, login pages) */
.login-box {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 16px !important;
    padding: 32px !important;
    color: #94a3b8 !important;
    display: block !important;
    width: 100% !important;
    box-shadow: none !important;
}

.login-box label {
    color: #f1f5f9 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    display: block;
    margin-bottom: 12px;
}

.login-box .form-control {
    margin-top: 6px;
}

/* Instructions panel */
.instructions {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    color: #94a3b8 !important;
    margin-top: 0;
}

/* table-row layout fix for dark theme */
div[style*="display:table-row"] {
    display: flex !important;
    gap: 24px;
    flex-wrap: wrap;
}

div[style*="display:table-row"] > div {
    flex: 1;
    min-width: 280px;
}

/* Plain .btn without modifier (osTicket uses this) */
.btn:not(.btn-primary):not(.btn-secondary):not(.btn-danger):not(.btn-success):not(.btn-info):not(.btn-link):not(.btn-ghost):not(.cs-btn-ghost) {
    background: #f37649 !important;
    color: white !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 12px 32px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.btn:not(.btn-primary):not(.btn-secondary):not(.btn-danger):not(.btn-success):not(.btn-info):not(.btn-link):not(.btn-ghost):not(.cs-btn-ghost):hover {
    background: #e55c2f !important;
    box-shadow: 0 0 24px rgba(243,118,73,0.3) !important;
    transform: translateY(-2px) !important;
}

/* ===== TABLES ===== */
table, table.list, table.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

table th, table.list th {
    background: rgba(255,255,255,0.04) !important;
    color: #f1f5f9 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px !important;
}

table td, table.list td {
    color: #94a3b8 !important;
    padding: 12px 16px !important;
    border-top: 1px solid rgba(255,255,255,0.04) !important;
}

table tr:hover td {
    background: rgba(243,118,73,0.04) !important;
}

/* ===== FILE DROP ===== */
.filedrop {
    border: 2px dashed rgba(255,255,255,0.1) !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,0.02) !important;
    color: #64748b !important;
    padding: 24px !important;
    text-align: center;
    transition: all 0.2s ease;
}

.filedrop:hover, .filedrop.dragover {
    border-color: #f37649 !important;
    background: rgba(243,118,73,0.04) !important;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
    background: transparent !important;
    padding: 8px 0 !important;
}

.breadcrumb a { color: #64748b !important; }
.breadcrumb a:hover { color: #f37649 !important; }
.breadcrumb .active { color: #94a3b8 !important; }

/* ===== TABS ===== */
.nav-tabs {
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.nav-tabs .nav-link {
    color: #64748b !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    background: transparent !important;
    font-weight: 500 !important;
    padding: 12px 20px !important;
    border-radius: 0 !important;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover { color: #f1f5f9 !important; border-bottom-color: rgba(243,118,73,0.3) !important; }
.nav-tabs .nav-link.active { color: #f37649 !important; border-bottom-color: #f37649 !important; background: transparent !important; }

/* ===== PAGINATION ===== */
#pagination li a {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    color: #94a3b8 !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    transition: all 0.2s ease;
}

#pagination li a:hover { color: #f37649 !important; border-color: rgba(243,118,73,0.3) !important; }
#pagination .active { background: #f37649 !important; color: white !important; border-radius: 8px !important; padding: 6px 12px; }

.pagination .page-link {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    color: #94a3b8 !important;
}

.pagination .active .page-link { background: #f37649 !important; border-color: #f37649 !important; color: white !important; }

/* ===== DROPDOWNS ===== */
.dropdown-menu {
    background: #111117 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
}

.dropdown-item { color: #94a3b8 !important; transition: all 0.15s ease; }
.dropdown-item:hover { background: rgba(243,118,73,0.1) !important; color: #f37649 !important; }

/* ===== MODALS ===== */
.modal-content {
    background: #111117 !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 16px !important;
    color: #94a3b8 !important;
}

.modal-header { border-bottom: 1px solid rgba(255,255,255,0.06) !important; }
.modal-footer { border-top: 1px solid rgba(255,255,255,0.06) !important; }
.modal-header .close { color: #64748b !important; }
.modal-title { color: #f1f5f9 !important; }

/* ===== OVERLAY ===== */
#overlay {
    background: rgba(9,9,15,0.7) !important;
    backdrop-filter: blur(4px);
}

/* ===== LOADING ===== */
#loading {
    background: #111117 !important;
    border: 1px solid rgba(243,118,73,0.2) !important;
    border-radius: 16px !important;
    color: #94a3b8 !important;
    padding: 24px 24px 24px 70px !important;
}

#loading h4 { color: #f37649 !important; }

/* ===== REDACTOR ===== */
.redactor-box { border-radius: 12px !important; overflow: hidden !important; }
.redactor-toolbar { background: rgba(255,255,255,0.04) !important; border-bottom: 1px solid rgba(255,255,255,0.06) !important; }
.redactor-toolbar li a { color: #94a3b8 !important; }
.redactor-toolbar li a:hover { color: #f37649 !important; }
.redactor-editor { background: rgba(255,255,255,0.02) !important; color: #f1f5f9 !important; }

/* ===== SELECT2 ===== */
.select2-container--default .select2-selection--single {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    height: 42px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f1f5f9 !important;
    line-height: 42px !important;
}

.select2-dropdown {
    background: #111117 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
}

.select2-results__option { color: #94a3b8 !important; }
.select2-results__option--highlighted { background: rgba(243,118,73,0.15) !important; color: #f37649 !important; }

/* ===== TICKET THREAD ===== */
.thread-body { color: #94a3b8 !important; }
.thread-entry { border: 1px solid rgba(255,255,255,0.06) !important; border-radius: 12px !important; margin-bottom: 16px !important; overflow: hidden; }
.thread-entry .header { background: rgba(255,255,255,0.03) !important; padding: 12px 16px !important; border-radius: 12px 12px 0 0 !important; }

/* ===== CODE / PRE ===== */
code, pre {
    background: rgba(255,255,255,0.04) !important;
    color: #f37649 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 8px !important;
}

/* ===== BADGE ===== */
.badge {
    background: rgba(243,118,73,0.1) !important;
    color: #f37649 !important;
    border: 1px solid rgba(243,118,73,0.2) !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    padding: 4px 12px !important;
}

/* ===== SECTION BREAKS ===== */
div.section-break { border-top-color: rgba(255,255,255,0.06) !important; }

/* ===== BOOTSTRAP OVERRIDES ===== */
.bg-dark { background: rgba(9,9,15,0.9) !important; }
.text-muted { color: #64748b !important; }
.text-white { color: #f1f5f9 !important; }
.border { border-color: rgba(255,255,255,0.06) !important; }
.link-dark { color: #94a3b8 !important; }
.link-dark:hover { color: #f37649 !important; }
.jumbotron p { color: #94a3b8 !important; }

/* ===== CODESAINT FOOTER ===== */
.cs-footer {
    background: #060609 !important;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

/* Subtle top gradient border */
.cs-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* Footer ambient glow */
.cs-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 384px;
    height: 384px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243,118,73,0.18) 0%, transparent 70%);
    filter: blur(60px);
    opacity: 0.15;
    pointer-events: none;
}

.cs-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 64px 24px 40px;
    position: relative;
    z-index: 1;
}

.cs-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 48px;
}

@media (max-width: 991px) {
    .cs-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .cs-footer-grid { grid-template-columns: 1fr; }
}

.cs-footer-about {
    color: #64748b !important;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.cs-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.cs-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #94a3b8 !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cs-footer-social a:hover {
    color: white !important;
    background: #f37649 !important;
    border-color: #f37649 !important;
    transform: translateY(-3px);
}

.cs-footer-heading {
    color: #ffffff !important;
    font-size: clamp(0.9375rem, 1.2vw, 1.0625rem) !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em;
    margin-bottom: 24px !important;
    padding-bottom: 12px;
    position: relative;
}

.cs-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #f37649;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.cs-footer-heading:hover::after {
    width: 50px;
}

.cs-footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.cs-footer-links li {
    margin-bottom: 12px;
}

.cs-footer-links a {
    color: #94a3b8 !important;
    font-size: 14px !important;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.cs-footer-links a:hover {
    color: #f37649 !important;
    transform: translateX(5px);
}

.cs-footer-contact {
    font-size: 14px;
    color: #94a3b8 !important;
    line-height: 1.7;
}

.cs-footer-contact div {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cs-footer-contact i {
    color: #f37649 !important;
    margin-top: 4px;
    width: 16px;
    flex-shrink: 0;
    text-align: center;
    font-size: 1rem;
}

.cs-footer-contact a {
    color: #94a3b8 !important;
}

.cs-footer-contact a:hover {
    color: #f37649 !important;
}

.cs-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cs-footer-bottom p {
    color: #64748b !important;
    font-size: 12px !important;
    margin: 0;
    text-align: center !important;
}

.cs-footer-legal {
    display: inline-flex;
    gap: 16px;
    margin-left: 16px;
}

.cs-footer-legal a {
    color: #64748b !important;
    font-size: 12px !important;
}

.cs-footer-legal a:hover {
    color: #f37649 !important;
}

@media (max-width: 576px) {
    .cs-footer-legal {
        display: flex;
        justify-content: center;
        margin-left: 0;
        margin-top: 8px;
    }
}

/* ===== AFTER-LOGIN & UTILITY OVERRIDES ===== */

/* Bootstrap utility classes */
.bg-light { background: rgba(255,255,255,0.03) !important; }
.bg-white { background: rgba(255,255,255,0.03) !important; }
.text-dark { color: #f1f5f9 !important; }
.text-body { color: #94a3b8 !important; }
.border-bottom { border-bottom-color: rgba(255,255,255,0.06) !important; }

/* Paragraph inside dark containers */
p { color: #94a3b8; }
h1, h2, h3, h4, h5, h6 { color: #f1f5f9 !important; }

/* External auth buttons (Google, etc.) */
.external-auth-name { color: #f1f5f9 !important; }
.external-auth a {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    color: #f1f5f9 !important;
    transition: all 0.2s ease;
}
.external-auth a:hover {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.15) !important;
}

/* Select2 search field */
.select2-container--default .select2-search--dropdown .select2-search__field {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    color: #f1f5f9 !important;
    border-radius: 8px !important;
}

/* Typeahead / autocomplete */
.typeahead, .tt-menu, .tt-suggestion {
    background: #111117 !important;
    color: #94a3b8 !important;
}
.tt-menu {
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
}
.tt-suggestion:hover, .tt-cursor {
    background: rgba(243,118,73,0.1) !important;
    color: #f37649 !important;
}

/* List group items */
.list-group-item {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.06) !important;
    color: #94a3b8 !important;
}
.list-group-item:hover {
    background: rgba(255,255,255,0.05) !important;
}
.list-group-item.active {
    background: rgba(243,118,73,0.1) !important;
    border-color: rgba(243,118,73,0.2) !important;
    color: #f37649 !important;
}

/* Popover */
.popover {
    background: #111117 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    color: #94a3b8 !important;
}
.popover-header {
    background: rgba(255,255,255,0.04) !important;
    border-bottom-color: rgba(255,255,255,0.06) !important;
    color: #f1f5f9 !important;
}
.popover-body { color: #94a3b8 !important; }
.bs-popover-bottom .arrow::after,
.bs-popover-auto[x-placement^="bottom"] .arrow::after {
    border-bottom-color: #111117 !important;
}

/* Tooltip */
.tooltip-inner {
    background: #1a1a24 !important;
    color: #f1f5f9 !important;
    border-radius: 8px !important;
}

/* Well / panel (osTicket legacy) */
.well, .panel, .panel-default {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 12px !important;
    color: #94a3b8 !important;
}
.panel-heading {
    background: rgba(255,255,255,0.04) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    color: #f1f5f9 !important;
    border-radius: 12px 12px 0 0 !important;
}

/* Ticket info (after login — ticket detail page) */
.ticket-info, .ticket_info {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 12px !important;
    padding: 16px !important;
}

/* Thread messages */
.thread-entry .message, .thread-entry .response, .thread-entry .note {
    background: rgba(255,255,255,0.02) !important;
    color: #94a3b8 !important;
    padding: 16px !important;
}
.thread-entry .header span, .thread-entry .header a {
    color: #94a3b8 !important;
}
.thread-entry .header strong {
    color: #f1f5f9 !important;
}

/* osTicket specific containers */
#msg_warning, #msg_error, #msg_notice, #msg_info {
    border-radius: 12px !important;
}

/* Profile page */
.profile-form label, .profile label {
    color: #f1f5f9 !important;
}

/* Alerts */
.alert {
    border-radius: 12px !important;
}
.alert-primary {
    background: rgba(243,118,73,0.08) !important;
    border: 1px solid rgba(243,118,73,0.15) !important;
    color: #94a3b8 !important;
}
.alert-info {
    background: rgba(56,189,248,0.08) !important;
    border: 1px solid rgba(56,189,248,0.15) !important;
    color: #94a3b8 !important;
}
.alert-warning {
    background: rgba(251,191,36,0.08) !important;
    border: 1px solid rgba(251,191,36,0.15) !important;
    color: #fbbf24 !important;
}
.alert-danger {
    background: rgba(239,68,68,0.08) !important;
    border: 1px solid rgba(239,68,68,0.15) !important;
    color: #ef4444 !important;
}
.alert-success {
    background: rgba(34,197,94,0.08) !important;
    border: 1px solid rgba(34,197,94,0.15) !important;
    color: #22c55e !important;
}

/* Fieldset / legend */
fieldset { border-color: rgba(255,255,255,0.06) !important; }
legend { color: #f1f5f9 !important; }

/* HR */
hr { border-color: rgba(255,255,255,0.06) !important; }

/* osTicket sidebar / ticket navigation */
.sidebar, .side-nav, #sidebar {
    background: rgba(255,255,255,0.02) !important;
    border-right: 1px solid rgba(255,255,255,0.06) !important;
}

/* Ticket status labels */
.label, span.label {
    border-radius: 9999px !important;
    padding: 4px 12px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

/* Summary / info blocks */
#reply input[type=text],
#reply textarea,
#reply #response_options textarea {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    color: #f1f5f9 !important;
}

.summary, #ticketInfo, .info-block {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 12px !important;
    color: #94a3b8 !important;
}

#ticketInfo h1 {
    background-color: transparent !important;
    border-bottom-color: rgba(255,255,255,0.06) !important;
    color: #f1f5f9 !important;
}

/* Links general */
a { color: #f37649; }
a:hover { color: #fbbf24; }
#container a:not(.btn):not(.cs-btn-ghost):not(.cs-subnav-link):not(.cs-nav-link) { color: #f37649 !important; }
#container a:not(.btn):not(.cs-btn-ghost):not(.cs-subnav-link):not(.cs-nav-link):hover { color: #fbbf24 !important; }

/* ===== THEME.CSS OVERRIDES (white/black cleanup) ===== */
h2, .subject {
    color: #f1f5f9 !important;
}

#nav li a.active,
#nav li a:hover {
    background-color: rgba(243,118,73,0.1) !important;
    color: #f37649 !important;
}

#nav li a {
    color: #94a3b8 !important;
}

#ticketTable caption {
    color: #f1f5f9 !important;
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.06) !important;
}

#ticketTable th {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.06) !important;
    color: #f1f5f9 !important;
}

#ticketTable th a {
    color: #f1f5f9 !important;
}

#ticketTable td {
    color: #94a3b8 !important;
    border-color: rgba(255,255,255,0.04) !important;
}

#ticketTable tr:hover td {
    background: rgba(243,118,73,0.04) !important;
}

#pagination .active {
    color: white !important;
    background: #f37649 !important;
}

/* osTicket alerts with images */
.error, #msg_error {
    background: rgba(239,68,68,0.08) !important;
    border: 1px solid rgba(239,68,68,0.15) !important;
    color: #ef4444 !important;
    background-image: none !important;
}

.warning, #msg_warning {
    background: rgba(251,191,36,0.08) !important;
    border: 1px solid rgba(251,191,36,0.15) !important;
    color: #fbbf24 !important;
    background-image: none !important;
}

.notice, .info, #msg_notice, #msg_info {
    background: rgba(56,189,248,0.08) !important;
    border: 1px solid rgba(56,189,248,0.15) !important;
    color: #94a3b8 !important;
    background-image: none !important;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #09090f; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ===== jQuery UI ===== */
.ui-widget-content { background: #111117 !important; color: #94a3b8 !important; border-color: rgba(255,255,255,0.08) !important; }
.ui-widget-header { background: rgba(255,255,255,0.04) !important; color: #f1f5f9 !important; border-color: rgba(255,255,255,0.06) !important; }
.ui-state-default { background: rgba(255,255,255,0.04) !important; color: #94a3b8 !important; }
.ui-state-hover { background: rgba(243,118,73,0.1) !important; color: #f37649 !important; }
.ui-state-active { background: #f37649 !important; color: white !important; }
.ui-datepicker { border-radius: 12px !important; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important; }

/* ===== HERO STATS BAR ===== */
.cs-hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4rem);
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.cs-stat-item {
    text-align: center;
}

.cs-stat-value {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #f37649 !important;
    line-height: 1.2;
    margin-bottom: 4px;
}

.cs-stat-label {
    font-size: 14px;
    color: #64748b !important;
    font-weight: 500;
}

.cs-stat-item + .cs-stat-item {
    position: relative;
}

.cs-stat-item + .cs-stat-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * clamp(1rem, 2.5vw, 2rem));
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.08);
}

@media (max-width: 576px) {
    .cs-hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .cs-stat-item + .cs-stat-item::before {
        display: none;
    }
}

/* ===== CONTACT CHANNELS SECTION ===== */
.cs-channels-section {
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 64px 24px;
}

.cs-channels-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.cs-section-title {
    text-align: center;
    margin-bottom: 48px;
}

.cs-section-title h2 {
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    margin-bottom: 12px;
}

.cs-section-title p {
    color: #64748b !important;
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.cs-channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .cs-channels-grid {
        grid-template-columns: 1fr;
    }
}

.cs-channel-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cs-channel-card:hover {
    transform: translateY(-4px);
    border-color: rgba(243,118,73,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(243,118,73,0.05);
}

.cs-channel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cs-channel-header i {
    font-size: 1.5rem;
    color: #f37649;
}

.cs-channel-badge {
    font-size: 12px;
    font-weight: 600;
    color: #f37649;
    background: rgba(243,118,73,0.1);
    border: 1px solid rgba(243,118,73,0.2);
    padding: 4px 12px;
    border-radius: 9999px;
}

.cs-channel-body {
    padding: 24px 20px;
}

.cs-channel-body h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
    margin-bottom: 8px;
}

.cs-channel-body p {
    color: #64748b !important;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.cs-channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #f37649 !important;
    color: white !important;
    border: none !important;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.cs-channel-btn:hover {
    background: #e55c2f !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(243,118,73,0.3);
}

/* ===== ENTERPRISE CTA SECTION ===== */
.cs-cta-section {
    position: relative;
    overflow: hidden;
    padding: 64px 24px;
    text-align: center;
    background: #09090f;
}

.cs-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(243,118,73,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cs-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cs-cta-inner h2 {
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    margin-bottom: 12px;
}

.cs-cta-inner p {
    color: #64748b !important;
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.cs-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: #f37649 !important;
    color: white !important;
    border: none !important;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(243,118,73,0.2);
}

.cs-cta-btn:hover {
    background: #e55c2f !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(243,118,73,0.3);
}

/* ===== REMOTE SUPPORT CARD (4th card on homepage) ===== */
.cs-remote-card {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 16px !important;
    padding: 32px 24px !important;
    text-align: center;
    transition: all 0.3s ease;
}

.cs-remote-card:hover {
    transform: translateY(-4px);
    border-color: rgba(243,118,73,0.2) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(243,118,73,0.05) !important;
}

/* ===== BACK TO TOP ===== */
.cs-back-to-top {
    position: fixed;
    bottom: 32px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f37649;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 50;
    border: none !important;
    box-shadow: 0 4px 15px rgba(243,118,73,0.2);
}

.cs-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.cs-back-to-top:hover {
    background: #e55c2f;
    transform: scale(1.1);
    color: white !important;
}

/* ===== KB ARTICLE & THREAD DARK FIXES (2026-04-14) ===== */

/* FAQ article body — was white bg */
.thread-body,
.thread-body.bleed,
div.thread-body {
    background: transparent !important;
    color: #cbd5e1 !important;
    padding: 8px 0 !important;
    line-height: 1.7 !important;
}
.thread-body *,
.thread-body.bleed * {
    background-color: transparent !important;
}
.thread-body p,
.thread-body li,
.thread-body span,
.thread-body div {
    color: #cbd5e1 !important;
}
.thread-body a { color: #f37649 !important; }
.thread-body strong, .thread-body b { color: #f1f5f9 !important; }
.thread-body code, .thread-body pre {
    background: rgba(255,255,255,0.04) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 6px !important;
    padding: 2px 6px !important;
}

/* Main content container — was light blue bg */
#content, .content, div.content {
    background: transparent !important;
    color: #cbd5e1 !important;
}

/* FAQ article title */
.article-title,
.article-title.flush-left {
    color: #f1f5f9 !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    padding: 16px 0 8px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    margin-bottom: 12px !important;
}

/* "Last Updated" faded text */
.faded {
    color: #64748b !important;
    font-size: 12px !important;
}

/* KB popular-faq list items (icon color) */
.popular-faq {
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}
.popular-faq:last-child { border-bottom: none !important; }
.popular-faq i,
.popular-faq .fa,
.popular-faq .fas {
    color: #f37649 !important;
    margin-right: 8px !important;
    opacity: 0.85 !important;
}
.popular-faq a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 14px !important;
}
.popular-faq a:hover { color: #f37649 !important; }

/* KB category cards on index */
.category, #categories .category {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 16px !important;
}
.category h3, .category h2, .category a.category-name {
    color: #f37649 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    display: block !important;
}

/* KB "Still Have Questions?" sidebar card — keep orange but tone */
.kb-sidebar, .sidebar {
    background: rgba(243,118,73,0.06) !important;
    border: 1px solid rgba(243,118,73,0.2) !important;
    border-radius: 12px !important;
    color: #f1f5f9 !important;
}

/* Ticket thread entries (after-login ticket view) */
.thread-entry,
.thread-event,
.message,
.response,
.note {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 10px !important;
    color: #cbd5e1 !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
}
.thread-entry .header,
.thread-entry .info,
.thread-event .description {
    color: #94a3b8 !important;
    background: transparent !important;
}
.thread-entry .avatar,
.thread-entry .avatar img {
    border-radius: 50% !important;
}

/* Profile / account pages */
.tickets-list, table.list {
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 10px !important;
    color: #cbd5e1 !important;
}
table.list th {
    background: rgba(255,255,255,0.04) !important;
    color: #f1f5f9 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
table.list td {
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    color: #cbd5e1 !important;
}
table.list tr:hover td {
    background: rgba(243,118,73,0.05) !important;
}

/* KB breadcrumbs — was gray */
#breadcrumbs, div#breadcrumbs {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 8px !important;
    color: #94a3b8 !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
}
#breadcrumbs a {
    color: #f37649 !important;
    text-decoration: none !important;
}
#breadcrumbs a:hover { text-decoration: underline !important; }

/* ===== FEATURED KB CARD HEADER (replaced SVG placeholder) ===== */
.cs-featured-card-header {
    background: linear-gradient(135deg, rgba(243,118,73,0.15) 0%, rgba(243,118,73,0.04) 100%) !important;
    border-bottom: 1px solid rgba(243,118,73,0.2) !important;
    padding: 24px 20px !important;
    text-align: center !important;
    border-radius: 16px 16px 0 0 !important;
}
.cs-featured-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(243,118,73,0.15);
    color: #f37649 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
    border: 1px solid rgba(243,118,73,0.25);
}
.cs-featured-title {
    color: #f1f5f9 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    letter-spacing: 0.2px;
}
.card-body .card-title a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    display: block;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-weight: 400 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}
.card-body .card-title:last-child a { border-bottom: none !important; }
.card-body .card-title a:hover { color: #f37649 !important; }
.card-body .card-title a i.fas {
    color: #f37649 !important;
    margin-right: 6px !important;
    opacity: 0.8;
}

/* ===== MOBILE RESPONSIVENESS (2026-04-15) ===== */
@media (max-width: 768px) {
    /* Stack featured KB card deck */
    .card-deck {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    .card-deck .card {
        margin: 0 !important;
        flex: 1 1 auto !important;
    }

    /* Hero */
    .cs-hero-title { font-size: 28px !important; }
    .cs-hero-subtitle { font-size: 14px !important; }

    /* KB article */
    .article-title, .article-title.flush-left {
        font-size: 18px !important;
    }

    /* Sidebar (Still have questions) stacks under article on mobile */
    .kb-sidebar, .sidebar {
        margin-top: 16px !important;
    }

    /* Breadcrumb wrap */
    #breadcrumbs {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }

    /* Tables scrollable */
    table.list { display: block !important; overflow-x: auto !important; white-space: nowrap !important; }

    /* Navbar mobile toggle - reduce padding */
    .cs-navbar-inner { padding: 0 16px !important; }
    .cs-subnav-inner { overflow-x: auto !important; white-space: nowrap !important; }
    .cs-subnav-link { padding: 12px 14px !important; font-size: 13px !important; }
}

@media (max-width: 576px) {
    /* Form fields full width */
    input[type=text], input[type=email], input[type=password], textarea, select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .cs-featured-icon { width: 44px; height: 44px; font-size: 18px; }
    .cs-featured-title { font-size: 14px !important; }
}
