html, body { 
    background-color: #0d0d1a !important;
}

#row-html1-0 {
    flex: none !important;
    width: 100% !important;
    max-width: 900px !important;
    display: block !important;
    margin: 0 auto !important;
}
#row-html1-0 .am-element {
    flex: none !important;
    width: 100% !important;
    max-width: 900px !important;
    display: block !important;
}
#html1 {
    flex:none !important;
    width: 100% !important;
    max-width: 900px !important;
    display: block !important;
}
#profile{
    margin: 0 auto !important;
    border-color:#c4222b !important;
    border-radius:15px !important;
    width:100% !important;
    max-width: 900px !important;
    padding-bottom:20px !important;
}

#row-signup_website_url-0 {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ============================================
   LAYOUT
   ============================================ */
.ve-layout {
    min-height: 100%;
    background-color: #181f29 !important;
}

.ve-layout2 {
    min-height: 100%;
    background-color: #0d0d1a;
}

.ve-layout2,
.ve-content-anon2 {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ve-content_content2 {
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   HEADER
   ============================================ */
.ve-header {
    padding: 1rem 2rem 1rem 1rem;
    position: fixed;
    background: #0d0d1a;
    width: 100%;
    box-sizing: border-box;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.ve-header-logo-btn { order: 0; }
.ve-nav-toggle-btn { order: 1; }
.ve-identity-block { order: 2; margin-left: auto; }

@media (max-width: 1119px) {
    .ve-nav-toggle-btn { order: 0; }
    .ve-header-logo-btn { order: 1; }
}

.ve-header-logo {
    display: block;
    width: 100%;
	max-width: 250px;
    z-index: 999999;
}

@media (max-width: 400px) {
    .ve-header-logo { max-width: 250px; }
}

.ve-identity-block {
    float: right;
    height: 45px;
    color: #fff;
}

.ve-identity-bloc_block {
    line-height: 45px;
    display: inline-block;
    vertical-align: middle;
    background: url('../img/ve/account.png') no-repeat left center;
    padding-left: 30px;
}

.ve-header-anon {
    padding: 1rem;
    background: #0d0d1a;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(232,48,58,0.3);
    text-align: center;
}

.ve-header-anon2 {
    padding: 1rem;
    background: #13131f;
    text-align: center;
}

/* ============================================
   NAV
   ============================================ */
.ve-nav {
    width: 230px;
    position: fixed;
    top: 90px;
    bottom: 0;
    background: #0d0d1a;
    z-index: 10010;
    transition: left .2s;
   
}

.ve-nav .ve-nav-nav { padding: 2rem 0; }

.ve-nav ul,
.ve-nav li,
.am-common .ve-nav li {
    margin: 0;
    padding: 0;
}

.ve-nav .ve-nav-nav li { list-style: none; }

.ve-nav li.has-children > a::after {
    content: '';
    background: url('../img/ve/menu-fold.png') no-repeat center center;
    display: inline-block;
    vertical-align: middle;
    float: right;
    width: 16px;
    height: 16px;
    transition: all .3s;
}

.ve-nav li.has-children.expanded > a::after {
    transform: rotate(90deg);
}

.ve-nav ul ul {
    overflow: hidden;
    max-height: 0;
    transition: max-height .5s;
}

.ve-nav li.expanded > ul { max-height: 500px; }

.ve-nav .ve-nav-nav a {
    color: white;
    text-decoration: none;
    display: block;
    padding: .75rem 1rem .75rem 2rem;
    opacity: .7;
    transition: opacity .2s;
}

.ve-nav-nav { font-size: 1.1rem; }
.ve-nav-nav ul { font-size: 1rem; padding-left: .5rem; }
.ve-nav .ve-nav-nav a:hover { opacity: 1; color: #e8303a; }

.ve-nav-close {
    padding: 1rem;
    display: none;
}

.ve-nav-toggle-btn,
.ve-nav-close .ve-nav-close-btn {
    height: 40px;
    line-height: 40px;
    vertical-align: middle;
    margin-right: .75rem;
    padding: 0;
}

.ve-nav-toggle-btn { display: none; }

.ve-nav-toggle-btn img,
.ve-nav-close-btn img {
    display: inline-block;
    vertical-align: middle;
}

.ve-identity-block-menu { display: none; }

@media all and (max-width: 1119px) {
    .ve-nav-toggle-btn { display: none !important; }
}

@media all and (max-width: 1119px) {
    .ve-nav-toggle-btn { display: inline-block !important; }
}

/* ============================================
   CONTENT AREA
   ============================================ */
.ve-scroll {
    width: auto;
    height: 100%;
    overflow-y: auto;
}

.ve-content {
    padding: 86px 0 0;
    margin-left: 230px;
}

.ve-content_header {
    margin: 2rem 2rem 1rem 2rem;
}

.ve-content_header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: normal;
}

.ve-content-mask {
    opacity: 0;
    background: black;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    visibility: hidden;
    transition: all .2s;
    z-index: 10005;
}

.ve-content_content {
    margin: 2rem 2rem 1rem 2rem;
}

.ve-content-anon {
    margin: 0 auto;
    max-width: 1000px;
}

ul.am-breadcrumbs {
    padding: 1rem 2rem 1rem 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(232,48,58,0.3);
}

.am-breadcrumbs-separator {
    text-indent: 1000px;
    overflow: hidden;
    background: url('../img/ve/breadcrumbs-s.png') no-repeat center center;
    width: 8px;
}

@media all and (max-width: 1119px) {
    .ve-nav { left: -230px; top: 0; }
    .ve-nav-close { display: block; }
    .ve-nav-toggle-btn { display: inline-block; }
    .ve-nav-toggle .ve-nav { left: 0; }
    .ve-content { margin-left: 0; }
    .ve-nav-toggle .ve-content-mask { opacity: .7; visibility: visible; }
}

@media all and (max-width: 584px) {
    .ve-identity-block { display: none; }
    .ve-identity-block-menu { display: block; }
}

/* ============================================
   AMEMBER LAYOUT COMPONENTS
   ============================================ */
.am-layout-two-coll {
    border: none;
    box-shadow: none;
}

.am-layout-two-coll .am-coll-right .am-coll-content,
.am-layout-two-coll .am-coll-left .am-coll-content {
    margin: 0;
    margin-bottom: 10px;
}

.am-layout-two-coll::after {
    content: '';
    display: block;
    clear: both;
}

.am-layout-two-coll-bottom,
.am-layout-two-coll-top { display: none; }

@media all and (min-width: 750px) {
    .am-layout-two-coll .am-coll-left .am-coll-content { margin-right: 1rem; }
    .am-layout-two-coll .am-coll-right .am-coll-content { margin-left: 1rem; }
}

.am-common a { color: #e8303a; }

.am-auth-form { max-width: 350px; }

.am-auth-form div.am-row div.am-element-title { display: none; }

.am-auth-form div.am-row div.am-element {
    margin: 0;
    padding: .6em 2em;
}

.am-auth-form div.am-row div.am-element input[type=submit],
.am-auth-form div.am-row div.am-element input[type=submit]:active,
.am-auth-form div.am-row div.am-element input[type=submit]:hover,
.am-auth-form div.am-row div.am-element input[type=submit]:disabled {
    width: 100%;
}

.am-auth-form .am-form-login-switch-wrapper {
    text-align: center;
    display: block;
    padding: 1.2em 2em .6em;
}

.am-auth-form .am-form-login-switch-wrapper .am-form-login-switch { margin: 0; }

/* ============================================
   MISC HIDDEN ELEMENTS
   ============================================ */
.am-login-text { display: none !important; }
#am-block-active-subscriptions { display: none !important; }
.am-signup-link { display: none !important; }
.ve-content_header { display: none !important; }

/* ============================================
   CUSTOM ELEMENTS
   ============================================ */
.am-info {
    background-color: #ffdfdf !important;
    padding: 10px;
    border-style: dashed;
    border-color: #ff0000 !important;
    border-width: 1px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 16px;
}

#am-product-terms-3-3 {
    visibility: hidden;
    position: relative;
}

#am-product-terms-3-3::after {
    content: "$25.00";
    visibility: visible;
    position: absolute;
    left: 0;
    top: 0;
}

#row-html1-0 .am-element {
    display: block;
    margin-left: 0;
}

#html1 {
    text-align: left;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}


/* ============================================
   LAYOUT WRAPPERS - ANONYMOUS PAGES
   ============================================ */
.am-login-form-wrapper,
.am-auth-form.am-login-form,
.am-form.am-login-form,
.am-sendpass-form-wrapper,
.am-auth-form.am-sendpass-form {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ============================================
   SHARED FORM RESETS
   ============================================ */
.am-login-form-form,
body .am-login-form-wrapper .am-login-form-form,
.am-login-form-form fieldset,
.am-sendpass-form-form,
.am-sendpass-form-form fieldset,
.am-login-form-form .am-row,
.am-login-form-form .am-element,
.am-row,
.am-element {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.am-login-form-form fieldset,
.am-sendpass-form-form fieldset {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.am-login-form-form legend,
.am-sendpass-form-form legend {
    display: none !important;
}

/* ============================================
   SECTION PADDING
   ============================================ */
.nk-main.has-mask .section-login-page {
    padding-top: 120px !important;
}

.nk-main.has-mask .section-signup-page {
    padding-top: 120px !important;
}

/* ============================================
   LOGIN + FORGOT INPUTS
   ============================================ */
.am-login-form-form input[type="text"],
.am-login-form-form input[type="password"],
.am-sendpass-form-form input[type="text"] {
    width: 100% !important;
    background-color: #1a1a2e !important;
    border: 1px solid rgba(232,48,58,0.2) !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 14px 20px 14px 40px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
}

.am-login-form-form input[type="text"]::placeholder,
.am-login-form-form input[type="password"]::placeholder,
.am-sendpass-form-form input[type="text"]::placeholder {
    color: rgba(255,255,255,0.4) !important;
}

/* ============================================
   LOGIN + FORGOT SUBMIT BUTTONS
   ============================================ */
body .am-login-form-form input[type="submit"],
body .am-login-form-form .am-row-buttons input,
body .am-sendpass-form-form input[type="submit"],
body .am-sendpass-form-form .am-row-buttons input {
    width: 100% !important;
    background: #e8303a !important;
    background-color: #e8303a !important;
    background-image: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 50px !important;
    color: #fff !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-top: 0.5rem !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

body .am-login-form-form input[type="submit"]:hover,
body .am-login-form-form .am-row-buttons input:hover,
body .am-sendpass-form-form input[type="submit"]:hover,
body .am-sendpass-form-form .am-row-buttons input:hover {
    background: #c4222b !important;
    background-color: #c4222b !important;
}

/* ============================================
   LOGIN FORM ROWS + LABELS
   ============================================ */
.am-login-form-form .am-row,
.am-login-form-form .am-element,
.am-sendpass-form-form .am-row,
.am-sendpass-form-form .am-element {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 0 1rem 0 !important;
}

.am-login-form-form .am-element-title label {
    color: #fff !important;
    font-size: 14px !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.am-login-form-form .am-form-login-switch-wrapper {
    display: block !important;
    text-align: right !important;
    padding: 8px 0 0 0 !important;
}

.am-login-form-form #am-form-login-remember {
    color: #fff !important;
    font-size: 14px !important;
}

.am-login-form-form input[type="checkbox"]#remember_login {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-right: 6px !important;
    vertical-align: middle !important;
}

/* ============================================
   THEME BUTTON
   ============================================ */
/* Override aMember button skin */
body .am-btn,
body .am-btn-primary,
body input[type="submit"],
body button[type="submit"] {
    background: linear-gradient(90deg, #e8303a, #ff6b6b) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    padding: 12px 0 !important;
    box-shadow: none !important;
}

/* Hover */
body .am-btn:hover,
body .am-btn-primary:hover,
body input[type="submit"]:hover,
body button[type="submit"]:hover {
    background: linear-gradient(90deg, #ff6b6b, #e8303a) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(232, 48, 58, 0.5) !important;
}

/* Override aMember's old .button class */
body a.button,
body .button {
    background: linear-gradient(90deg, #e8303a, #ff6b6b) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    padding: 12px 24px !important;
    box-shadow: none !important;
    display: inline-block !important;
    text-align: center !important;
}

/* Hover */
body a.button:hover,
body .button:hover {
    background: linear-gradient(90deg, #ff6b6b, #e8303a) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(232, 48, 58, 0.5) !important;
}


/* ============================================
   SIGNUP FORM
   ============================================ */
body .am-signup .am-form,
body .am-signup .am-signup-form,
body .am-signup fieldset,
body .am-signup .fieldset,
body .am-signup .am-row,
body .am-signup .am-element {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #fff !important;
}

body .am-signup fieldset {
    border-top: 1px solid rgba(232,48,58,0.2) !important;
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
}

body .am-signup fieldset legend,
body .am-signup label,
body .am-signup .am-element-title,
body .am-signup .am-element-title label,
body .am-signup .comment {
    color: #fff !important;
    background: transparent !important;
    font-size: 14px !important;
    margin-bottom: 6px !important;
}

body .am-signup fieldset legend {
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 0 !important;
}

body .am-signup input[type="text"],
body .am-signup input[type="email"],
body .am-signup input[type="password"],
body .am-signup input[type="tel"],
body .am-signup select {
    width: 100% !important;
    background-color: #1a1a2e !important;
    border: 1px solid rgba(232,48,58,0.5) !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
}

body .am-signup input[type="text"]::placeholder,
body .am-signup input[type="email"]::placeholder,
body .am-signup input[type="password"]::placeholder {
    color: rgba(255,255,255,0.4) !important;
}

body .am-signup select option {
    background-color: #1a1a2e !important;
    color: #fff !important;
}

body .am-signup .am-row { margin-bottom: 1rem !important; }

body .am-signup .am-hint,
body .am-signup .am-element-hint {
    color: rgba(255,255,255,0.4) !important;
    font-size: 12px !important;
}

body .am-signup .am-required { color: #e8303a !important; }

body .am-signup #am-mobile-area,
body .am-signup select#am-mobile-area {
    width: auto !important;
    display: inline-block !important;
    padding: 10px 14px !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
}

body .am-signup #mobile_number-0 {
    width: calc(100% - 90px) !important;
    display: inline-block !important;
    vertical-align: middle !important;
    height: 44px !important;
}

body .am-signup input[type="submit"],
body .am-signup button[type="submit"] {
    background: #e8303a !important;
    background-color: #e8303a !important;
    background-image: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 50px !important;
    color: #fff !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-top: 1rem !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

body .am-signup input[type="submit"]:hover,
body .am-signup button[type="submit"]:hover {
    background: #c4222b !important;
    background-color: #c4222b !important;
}

body .am-signup #row-buttons,
body .am-signup #row-buttons .am-element {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    background: transparent !important;
}

body .am-signup #row-buttons input[type="submit"] {
    width: auto !important;
    min-width: 250px !important;
    margin: 0 auto !important;
}

#row-name-0 .am-element.group {display:flex; gap:10px;} 
#row-name-0 .am-element.group input {width:50%;}


/* ============================================
   SELECT2 - PHONE PREFIX
   ============================================ */
body .am-signup .select2-container {
    display: inline-block !important;
    vertical-align: middle !important;
    width: auto !important;
    min-width: 80px !important;
}

body .am-signup .select2-container .select2-selection,
body .am-signup .select2-container--default .select2-selection--single {
    background-color: #1a1a2e !important;
    border: 1px solid rgba(232,48,58,0.5) !important;
    border-radius: 8px !important;
    color: #fff !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
}

body .am-signup .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
    line-height: normal !important;
    padding-left: 10px !important;
}

body .am-signup .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    top: 0 !important;
}

.select2-dropdown {
    background-color: #1a1a2e !important;
    border: 1px solid rgba(232,48,58,0.5) !important;
    color: #fff !important;
}

.select2-results__option {
    color: #fff !important;
    background-color: #1a1a2e !important;
}

.select2-results__option--highlighted {
    background-color: #e8303a !important;
    color: #fff !important;
}

.select2-search--dropdown .select2-search__field {
    background-color: #0d0d1a !important;
    border: 1px solid rgba(232,48,58,0.5) !important;
    color: #fff !important;
}

/* ============================================
   MEMBERS AREA - GLOBAL DARK THEME
   ============================================ */

/* Kill all white backgrounds inside content area */
body .ve-content *,
body .ve-content_content * {
    background-color: transparent !important;
}


/* Re-apply dark to inputs */
body .ve-content input[type="text"],
body .ve-content input[type="email"],
body .ve-content input[type="password"],
body .ve-content input[type="tel"],
body .ve-content input[type="number"],
body .ve-content input[type="am-mobile-area"],
body .ve-content textarea,
body .ve-content select {
    background-color: #1a1a2e !important;
    border: 1px solid rgba(232,48,58,0.5) !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
}


/* Re-apply red to buttons */
body .ve-content input[type="submit"],
body .ve-content button[type="submit"],
body .ve-content a.button {
    background-color: #e8303a !important;
    border: none !important;
    border-radius: 50px !important;
    color: #fff !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Text colors */
body .ve-content label,
body .ve-content .am-element-title,
body .ve-content legend,
body .ve-content p,
body .ve-content h1,
body .ve-content h2,
body .ve-content h3,
body .ve-content h4,
body .ve-content h5,
body .ve-content h6,
body .ve-content td,
body .ve-content th,
body .ve-content span,
body .ve-content li,
body .ve-content ul,
body .ve-content ol,
body .ve-content strong,
body .ve-content b,
body .ve-content em,
body .ve-content div {
    color: #fff !important;
}

/* Links */
body .ve-content a {
    color: #e8303a !important;
}

/* Tables */
body .ve-content table {
    background: transparent !important;
    color: #fff !important;
}

body .ve-content tr,
body .ve-content td,
body .ve-content th {
    border-color: rgba(232,48,58,0.2) !important;
}


/* ============================================
   PURCHASE CARD - LOGGED IN USERS
   ============================================ */
.lv-purchase-card {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.lv-purchase-card .am-signup #row-buttons,
.lv-purchase-card .am-signup #row-buttons .am-element {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
}

.lv-purchase-card .am-signup #row-buttons input[type="submit"] {
    width: auto !important;
    min-width: 250px !important;
}

/* Purchase quantity field - compact size */
.lv-purchase-card input.am-product-qty,
.lv-purchase-card input.el-short {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    text-align: center !important;
    padding: 8px !important;
    display: inline-block !important;
}

/* ============================================================
   AI TOOL – CORE LAYOUT
   ============================================================ */

/* Centered container for all AI tools */
.ai-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}


/* Hide elements when toggling form/output */
.ai-hidden {
    display: none !important;
}


/* ============================================================
   AI TOOL – BOTTOM ACTION BAR
   ============================================================ */

.ai-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0d0d1a; /* matches AIFM dark theme */
    border-top: 1px solid rgba(232,48,58,0.3); /* subtle red border */
    padding: 12px 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 9999;
}

.ai-bottom-bar button,
.ai-bottom-bar .button {
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-size: 15px !important;
}


/* ============================================================
   AI TOOL – TABLE WRAPPER (MOBILE SCROLL)
   ============================================================ */

.ai-table-wrapper {
    overflow-x: auto;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

/* Right-side fade to indicate scrollability */
.ai-table-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to left, #181f29, rgba(24,31,41,0));
}

@media (max-width: 720px) {
    .ai-table-wrapper::after {
        display: none !important;
    }
}

/* Optional scroll hint */
.ai-scroll-hint {
    text-align: right;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
    font-style: italic;
}


/* ============================================================
   AI TOOL – TABLE STYLING (uses AIFM colors)
   ============================================================ */

.ai-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* forces scroll on mobile */
}

.ai-table tr:nth-child(even) {
    background-color: rgba(232, 48, 58, 0.15) !important; /* subtle red tint */
}

.ai-table th,
.ai-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(232,48,58,0.2); /* red border */
    color: #fff !important;
}

@media (max-width: 800px){
     .ai-table td{
	 font-size:12px !important;
	 }
}

.ai-table th {
    font-weight: 600;
    background: rgba(232,48,58,0.5)!important; /* subtle red tint */
}

.ai-table tr:hover {
    background: rgba(232,48,58,0.08);
}


/* ============================================================
   AI TOOL – UTILITY CLASSES
   ============================================================ */

.ai-flex { display: flex; }
.ai-gap-12 { gap: 12px; }
.ai-mb-20 { margin-bottom: 20px; }
.ai-text-center { text-align: center; }
.ai-w-100 { width: 100%; }


/* ============================================================
   AI TOOL – RESPONSIVE BREAKPOINT
   ============================================================ */

@media (max-width: 1024px) {
    .ai-container {
        padding: 16px;
    }
}

/* ============================================================
   AI TOOL – PAGINATION
   ============================================================ */

.ai-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* Pagination buttons (numbers + arrows) */
.ai-page-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(232,48,58,0.5);
    color: #fff;
    background: #1a1a2e;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 11px;
    transition: all .2s;
    user-select: none;
}

/* Hover effect */
.ai-page-btn:hover {
    background: rgba(232,48,58,0.2);
    border-color: #e8303a;
}

/* Active page */
.ai-page-btn.ai-active {
    background: #e8303a;
    border-color: #e8303a;
    font-weight: 600;
}

/* Disabled arrows */
.ai-page-btn.ai-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Ellipsis (…) */
.ai-page-ellipsis {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    padding: 0 4px;
    user-select: none;
}

/* ============================================================
   AI TOOL – FONT SIZING (READABILITY + MOBILE)
   ============================================================ */

.ai-table {
    font-size: 16px; /* readable on desktop + mobile */
}

.ai-table th {
    font-size: 17px;
}

.ai-scroll-hint {
    font-size: 14px;
	display: none;
}

.ai-pagination .ai-page-btn {
    font-size: 14px;
}

.ai-container p {
    font-size: 17px; /* empty-state message */
}

@media (max-width: 600px) {
    .ai-table {
        font-size: 16px;
    }
    .ai-table th {
        font-size: 17px;
    }
    .ai-pagination .ai-page-btn {
        font-size: 11px;
    }
    .ai-container p {
        font-size: 18px;
    }
}

/* ============================================================
   UNIVERSAL HELPERS
   ============================================================ */
.ai-hidden {
    display: none;
}

/* ============================================================
   SUCCESS BAR
   ============================================================ */
.ai-success {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: #1fa83d;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 999999999 !important;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.15),
                0 0 16px rgba(31,168,61,0.7),
                0 4px 12px rgba(0,0,0,0.5);
}
.ai-success.show {
    opacity: 1;
}

/* ============================================================
   DELETE / CONFIRM POPUP
   ============================================================ */
.popup-confirm {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999999;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.popup-confirm.show {
    opacity: 1;
    pointer-events: all;
}
.popup-confirm-box {
    background: #0d0d1a;
    border: 1px solid rgba(232,48,58,0.4);
    padding: 24px;
    width: 90%;
    max-width: 420px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(232,48,58,0.3);
    transform: scale(0.92);
    transition: transform .25s ease;
}
.popup-confirm.show .popup-confirm-box {
    transform: scale(1);
}
.popup-confirm-box h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #fff;
}
.popup-confirm-box p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
}
.popup-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.popup-btn-yes,
.popup-btn-no {
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
}
.popup-btn-yes {
    background: #1fa83d;
}
.popup-btn-yes:hover {
    background: #27c44a;
}
.popup-btn-no {
    background: #e8303a;
}
.popup-btn-no:hover {
    background: #ff3f49;
}

/* ============================================================
   WORK POPUP / MODAL
   ============================================================ */
.work-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex !important;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.work-popup.show {
    opacity: 1;
    pointer-events: all;
}
.work-popup-box {
    background: #0d0d1a;
    border: 1px solid rgba(232,48,58,0.4);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform .25s ease;
}
.work-popup.show .work-popup-box {
    transform: scale(1);
}
.work-popup-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: #111122;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.work-popup-header h3 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}
.work-popup-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.work-popup-close:hover {
    color: #fff;
}
.work-popup-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    color: rgba(255,255,255,0.85);
}
.work-popup-content * {
    max-width: 100%;
    box-sizing: border-box;
}
.work-popup-content select {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.work-popup-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: #111122;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* ============================================================
   BUTTONS — used everywhere
   ============================================================ */
.work-btn {
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    border: 2px solid #e8303a;
    background: #e8303a;
    color: #fff;
    flex: 1 1 auto;
    min-width: 100px;
    text-align: center;
    transition: background .15s ease, color .15s ease;
}
.work-btn:hover {
    background: #c9272f;
    border-color: #c9272f;
}

/* Cancel — white with red border */
.work-btn-cancel {
    background: transparent;
    color: #e8303a;
    border: 2px solid #e8303a;
}
.work-btn-cancel:hover {
    background: #e8303a;
    color: #fff;
}

/* Primary — same as default, alias kept for clarity */
.work-btn-primary {
    background: #e8303a;
    color: #fff;
    border: 2px solid #e8303a;
}
.work-btn-primary:hover {
    background: #c9272f;
    border-color: #c9272f;
}

/* Delete — white with red border (same as cancel, distinct class for semantics) */
.work-btn-delete {
    background: transparent;
    color: #e8303a;
    border: 2px solid #e8303a;
}
.work-btn-delete:hover {
    background: #e8303a;
    color: #fff;
}

/* ============================================================
   POPUP CONTENT ELEMENTS
   ============================================================ */
.work-headline {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.work-subheadline {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
}
.work-meta {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}
.work-body {
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255,255,255,0.85);
    white-space: pre-line;
}
.work-body p {
    margin: 0 0 12px 0;
}
.work-body p:last-child {
    margin-bottom: 0;
}
.work-section {
    margin-bottom: 24px;
}
.work-label {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 6px;
}
.work-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: #111122;
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
}
.work-textarea {
    width: 100%;
    min-height: 30px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: #111122;
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
    margin-bottom: 16px;
}

/* ============================================================
   ACTION ICONS (view / edit / delete in tables)
   ============================================================ */
.ai-action-view,
.ai-action-edit,
.ai-action-delete {
    cursor: pointer;
    padding: 6px;
    font-size: 18px;
    display: inline-block;
    transition: transform .15s ease, opacity .15s ease;
}
.ai-action-view:hover,
.ai-action-edit:hover,
.ai-action-delete:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

/* ============================================================
   MOBILE — full screen popup
   ============================================================ */
@media (max-width: 600px) {
    .work-popup-box {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }
    .work-popup-header {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2;
    }
    .work-popup-footer {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2;
    }
    .work-popup-content {
        padding-bottom: 20px;
    }
}

/* ============================================================
   IMAGE CREATOR GRID
   ============================================================ */
.ai-image-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 999px) {
    .ai-image-grid {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 1000px) and (max-width: 1199px) {
    .ai-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1200px) and (max-width: 1499px) {
    .ai-image-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1500px) {
    .ai-image-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.image-item {
    border: 3px solid #e8303a;
    border-radius: 8px;
    padding: 10px;
    background: #1a1a2e;
    cursor: pointer;
    transition: transform .15s ease;
}
.image-item:hover {
    transform: scale(1.03);
}
.image-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.image-meta {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-align: center;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.ai-pagination {
    margin-top: 30px;
    text-align: center;
}
.pg-btn {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #e8303a;
    color: #e8303a;
    font-weight: bold;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.pg-btn:hover,
.pg-btn.active {
    background: #e8303a;
    color: #fff;
}
.pg-ellipsis {
    padding: 0 6px;
    color: rgba(255,255,255,0.4);
}

/* ============================================================
   SPINNER
   ============================================================ */
.ai-spinner-wrap {
    text-align: center;
    padding: 40px 20px;
}
.ai-spinner-wrap p {
    margin-top: 15px;
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}
.ai-spinner-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: #e8303a;
    margin: 0 auto;
    animation: ai-spin 0.9s linear infinite;
}
@keyframes ai-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ============================================================
   LEADS
   ============================================================ */

.lead-note-item {
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    margin-bottom: 10px;
    background: #111122;
}

.lead-note-date {
    font-size: 12px;
    opacity: 0.6;
    margin-bottom: 4px;
}

.lead-note-text {
    white-space: pre-wrap;
    line-height: 1.4;
}

/* ============================================================
   HELPDESK / TICKET SYSTEM
   ============================================================ */

/* Page title */
.am-grid-title {
    color: #fff !important;
    font-size: 22px !important;
    margin-bottom: 16px !important;
}
.am-grid-title-desc {
    font-size: 14px !important;
    color: rgba(255,255,255,0.4) !important;
    font-weight: 400 !important;
}

/* Submit button */
#am-grid-wrap-ticket-button {
    background: linear-gradient(90deg,#e8303a,#ff6b6b) !important;
    border: none !important;
    border-radius: 50px !important;
    color: #fff !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-bottom: 16px !important;
}

/* Table container */
.am-grid-container {
    background: linear-gradient(135deg,#111827,#0d0d1a) !important;
    border: 1px solid rgba(232,48,58,0.2) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* Table */
.am-grid {
    width: 100% !important;
    border-collapse: collapse !important;
    color: #fff !important;
}

/* Header */
.am-grid thead tr {
    background: rgba(232,48,58,0.5) !important;
}
.am-grid thead th {
    padding: 12px 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    border: none !important;
}
.am-grid thead th a,
.am-grid thead th a:hover {
    color: #fff !important;
    text-decoration: none !important;
}

/* Rows */
.am-grid tbody tr.even {
    background: #0d0d1a !important;
}
.am-grid tbody tr.odd {
    background: rgba(232,48,58,0.15) !important;
}
.am-grid tbody tr:hover {
    background: rgba(232,48,58,0.12) !important;
}
.am-grid tbody td {
    padding: 12px 14px !important;
    border-bottom: 1px solid rgba(232,48,58,0.1) !important;
    color: rgba(255,255,255,0.85) !important;
    font-size: 14px !important;
}

/* Subject link */
.am-helpdesk-grid-subject a.link {
    color: #e8303a !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}
.am-helpdesk-grid-subject a.link:hover {
    color: #ff6b6b !important;
}

/* Message count badge */
.am-helpdesk-grid-msg-cnt {
    background: rgba(232,48,58,0.2) !important;
    border: 1px solid rgba(232,48,58,0.4) !important;
    border-radius: 20px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
    color: #fca5a5 !important;
    margin-left: 6px !important;
}

/* Message preview */
.am-helpdesk-grid-msg {
    display: block !important;
    font-size: 12px !important;
    color: rgba(255,255,255,0.4) !important;
    margin-top: 4px !important;
}

/* Ticket number */
.am-grid tbody td:nth-child(3) {
    font-size: 12px !important;
    color: rgba(255,255,255,0.4) !important;
    font-family: monospace !important;
}

/* Time */
.am-grid tbody td time {
    font-size: 12px !important;
    color: rgba(255,255,255,0.5) !important;
}

.am-grid thead th,
.am-grid thead th a,
.am-grid thead th span {
    color: #fff !important;
    background: rgba(232,48,58,0.5) !important;
}

.am-grid thead {
    background: rgba(232,48,58,0.5) !important;
}

.am-grid thead tr {
    background: #e8303a !important;
}

.am-grid thead tr th .a-sort,
.am-grid thead tr th a.a-sort,
.am-grid thead tr th a.a-sort span {
    font-size:16px !important;
}

/* ============================================================
   HELPDESK — TICKET VIEW
   ============================================================ */

/* Page title */
.am-helpdesk-ticket-subject {
    color: #fff !important;
    font-size: 20px !important;
}
.am-helpdesk-ticket-mask {
    color: rgba(232,48,58,0.8) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}
.am-grid-back {
    color: #e8303a !important;
}

/* Ticket container */
.am-helpdesk {
    background: linear-gradient(135deg,#111827,#0d0d1a) !important;
    border: 1px solid rgba(232,48,58,0.2) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    padding: 0 !important;
}

/* Ticket header */
.am-helpdesk-ticket-header {
    background: rgba(0,0,0,0.2) !important;
    border-bottom: 1px solid rgba(232,48,58,0.2) !important;
    padding: 12px 16px !important;
    color: rgba(255,255,255,0.5) !important;
    font-size: 13px !important;
}
.am-helpdesk-ticket-info {
    color: rgba(255,255,255,0.5) !important;
    font-size: 13px !important;
}
.am-helpdesk-ticket-info strong {
    color: #fff !important;
}

/* Action links (Reply, Refresh) */
.am-helpdesk-ticket-actions {
    list-style: none !important;
    display: flex !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(232,48,58,0.1) !important;
}
.am-helpdesk-ticket-action a {
    color: #e8303a !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}
.am-helpdesk-ticket-action a:hover {
    color: #ff6b6b !important;
}

/* Messages */
.am-helpdesk-message {
    border-bottom: 1px solid rgba(232,48,58,0.1) !important;
    padding: 16px !important;
}
.am-helpdesk-message:last-child {
    border-bottom: none !important;
}

/* Inbound (admin) vs outbound (user) */
.am-helpdesk-message-outbound {
    background: rgba(255,255,255,0.02) !important;
}
.am-helpdesk-message-inbound {
    background: rgba(232,48,58,0.05) !important;
}

/* Message header */
.am-helpdesk-message-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    font-size: 13px !important;
    color: rgba(255,255,255,0.5) !important;
}
.am-helpdesk-message-author {
    color: #fff !important;
    font-weight: 600 !important;
}
.am-helpdesk-message-date {
    color: rgba(255,255,255,0.4) !important;
    font-size: 12px !important;
}
.am-helpdesk-message-action-fold a {
    color: rgba(255,255,255,0.4) !important;
    text-decoration: none !important;
}

/* Message content */
.am-helpdesk-message-content {
    color: rgba(255,255,255,0.85) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}
.am-helpdesk-message-content pre {
    font-family: inherit !important;
    white-space: pre-wrap !important;
    margin: 0 !important;
    color: rgba(255,255,255,0.85) !important;
    background: transparent !important;
    border: none !important;
}

/* Reply panel */
.am-helpdesk-reply-panel {
    background: rgba(0,0,0,0.2) !important;
    border: 1px solid rgba(232,48,58,0.2) !important;
    border-radius: 8px !important;
    margin-top: 12px !important;
    overflow: hidden !important;
}
.am-helpdesk-reply-panel-tools {
    padding: 8px 12px !important;
    border-bottom: 1px solid rgba(232,48,58,0.1) !important;
    background: rgba(0,0,0,0.2) !important;
}
.am-helpdesk-reply-panel-tool-emoji-item {
    cursor: pointer !important;
    font-size: 16px !important;
    padding: 2px 4px !important;
    opacity: 0.7 !important;
    transition: opacity .15s !important;
}
.am-helpdesk-reply-panel-tool-emoji-item:hover {
    opacity: 1 !important;
}
.am-helpdesk-reply-panel-content {
    min-height: 80px !important;
    padding: 12px !important;
    color: #fff !important;
}