/* GLOBAL FONTS FOR TRADE KNOCK */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* The "Clean Corporate" choice (Great for data/tables) */
    --font-primary-inter: 'Inter', sans-serif;

    /* The "Technical & Precise" choice (Great for analytics) */
    --font-data-manrope: 'Manrope', sans-serif;

    /* The "Premium Tech" choice (Great for marketing/headlines) */
    --font-brand-jakarta: 'Plus Jakarta Sans', sans-serif;

    /* The "Minimalist Luxury" choice (Great for profiles/nav) */
    --font-sleek-outfit: 'Outfit', sans-serif;

    /* --- THE MASTER SWITCH --- */
    /* Change this variable to switch the font everywhere instantly */
    --tk-main-font: var(--font-sleek-outfit);
}

/* 1. Reset high-level elements */
html, body {
    font-family: var(--tk-main-font) !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

/* 2. Force inheritance on all interactive components */
*, *::before, *::after {
    box-sizing: border-box !important;
}

button, 
input, 
optgroup, 
select, 
textarea {
    font-family: var(--tk-main-font) !important;
}

/* 3. Specific weights for that "fine" professional look */
h1, h2, h3, .tk-action-title, .tk-main-name {
    font-weight: 600 !important; /* Semi-bold for titles */
    letter-spacing: -0.02em !important;
}

p, .tk-action-desc, .tk-label {
    font-weight: 400 !important; /* Clean weight for body text */
}

/* GLOBAL FONTS FOR TRADE KNOCK END */

.user-profile-widget {
    width: 100%;
    height: 200px !important; /* Or your preferred height */
    
    /* Ensure the image is slightly larger so there is 'slack' to move */
    background-size: 110% auto !important; 
    background-repeat: no-repeat !important;
    
    /* Attach the animation */
    animation: slowPan 40s ease-in-out infinite !important;
    
    /* Smooth transitions for high-end feel */
    transition: background-image 0.5s ease-in-out !important;
    position: relative !important;
    overflow: hidden !important;
}

/* 1. Create the Shadow Overlay */
.user-profile-widget::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    
    /* 2. Linear Gradient: Starts Dark (70% Opacity), Fades to Clear */
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.7) 0%, /* Dark Top */
        rgba(0, 0, 0, 0) 50% /* Fades to Transparent mid-way down */
    );
    
    pointer-events: none; /* Allows user to click things 'behind' the shadow */
    z-index: 1; /* Shadow sits over the image */
}

/* The Movement Logic */
@keyframes slowPan {
    0% {
        background-position: center 0%; /* Start at top */
    }
    50% {
        background-position: center 100%; /* Move to bottom */
    }
    100% {
        background-position: center 0%; /* Return to top */
    }
}

/* 3. Ensure your labels sit OVER the shadow */
.account-categories {
    position: relative;
    z-index: 2 !important;
    opacity: 1 !important;
    color: #ffffff !important; /* Use white text for labels */
    background-color: #ed1e24ab !important; 
}

.user-profile-picture-widget {
    top: 100px !important;
}

.widget-user .widget-user-image > img {
    /* 1. Force equal dimensions */
    width: 150px; 
    height: 150px;

    /* 2. The "Magic" that prevents stretching */
    object-fit: cover;
    object-position: center; /* Keeps the face centered */

    /* 3. The Perfect Circle */
    border-radius: 50%;

    /* 4. Professional Styling (Optional) */
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    
}

.small-profile-pic {
    /* 1. Force equal dimensions */
    width: 35px !important; 
    height: 35px !important;

    /* 2. The "Magic" that prevents stretching */
    object-fit: cover;
    object-position: center; /* Keeps the face centered */

    /* 3. The Perfect Circle */
    border-radius: 50%;

    /* 4. Professional Styling (Optional) */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.widget-user .widget-user-image {
    margin-left: -80px;
}

.signin-logo {
    width: 200px;
}

.content-wrapper {
    margin-top: 10px;
}

/* SPINNER */

#spinner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.75) url(../img/loader.gif) no-repeat center center;
  z-index: 10000;
}

.profile-numb {
    top: 1.2rem !important;
}

.user-flag {
    width: 16px;
}

.seen-text {
    font-size: 10px;
}

.direct-chat-success .right>.direct-chat-text {
    float: right !important;
    text-align: right;
}

.direct-chat-success .left>.direct-chat-text {
    float: left !important;
    text-align: left;
}

.direct-chat-timestamp {
    font-size: 10px;
    padding-top: 14px;
    padding-right: 10px;
    padding-left: 10px;
}

.direct-chat-text {
    float: left;
    margin: 5px 0 0 18px;
}

.right .direct-chat-text {
    margin-left: 0;
    margin-right: 18px;
}

.doc-icon {
    width: 20px;
}

.pad {
    margin-bottom: 1rem;
}

.btn-clicked {
    background-color: #b6cee9;
    border-color: #ddd;
    color: #444;
}

.btn-clicked:hover {
    background-color: #b6cee9;
    border-color: #ddd;
    color: #444;
}

.morecontent span {
    display: none;
}
.ReadMore {
    display: visible;
}

.upload-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  margin-top: 14px;
}

.fileBtn {
  border: 1px solid gray;
  color: gray;
  background-color: white;
  padding: 5px 16px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
}

.fileBtnStory, .videoBtnStory {
  border: 1px solid gray;
  color: gray;
  background-color: white;
  padding: 0px 28px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  height: 200px;
  margin-bottom: 12px;
}

.btnTextNote {
    margin-top: 12px;
}

.text-note-section {
    padding-top: 6rem;
}

.upload-btn-wrapper input[type=file] {
  font-size: 100px;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

.upload-btn-wrapper-chat {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.fileBtn-chat {
  border: 0px solid #ed1e24;
  color: #ed1e24;
  background-color: transparent;
  padding: 5px 16px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
}

.upload-btn-wrapper-chat:hover {
  background-color: lightgrey;
}

.upload-btn-wrapper-chat input[type=file] {
  font-size: 100px;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

.product_information {
    color: #000;
    font-size: 11px;
    background-color: #f5f5f5 !important; 
    font-weight: bold;
/*
    border-bottom: 1px solid grey;
    padding: 4px;
*/
}

.post_description {
/*    cursor: pointer;*/
    font-size: 0.9375rem;
/*    height: 200px;*/
}

.inquire-product-btn {
    margin-top: 10px;
}

.image-upload {
    margin-left: 10px;
}

.link-black:focus, .link-black:hover {
    color: #6c757d !important;
}

.navbar-expand .navbar-nav .dropdown-menu {
    position: absolute;
    height: auto;
    min-height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.notif-unseen {
    background-color: #E5E4E2;
}

.notif-unseen:hover {
    background-color: #D3D3D3;
}

.no-notification {
    padding: 24px;
}

.your-connection {
    margin-bottom: 2rem;
}

.item-image-box {
    display: flex;
    width: auto;
    height: 36vh;
    background-color: #fff;
}

.item-image-box-full {
    display: flex;
    width: auto;
    height: 100vh;
    background-color: #fff;
}

/*
.item-image-box-modal {
    display: flex;
    width: auto;
    height: auto;
    background-color: #4f5962;
    margin: 0 auto;
}

.item-image-box-modal img {
    width: 100%;
    height: 100%;
}

.item-image-box-modal img {
    object-fit: contain;
}
*/

.item-image-box img, .item-image-box video {
    width: 100%;
    height: 100%;
}

.item-image-box img, .item-image-box video {
    object-fit: contain;
}

.comment-box {
    border: 0;
}

.card-footer:last-child {
    border-top: 1px solid lightgrey;
}

.hide { display: none; };

/* GREEN AND GREY DOT PULSATING FOR STATUS */

.ring-container {
    position: relative;
    z-index: 999;
}

.circle {
    width: 10px;
    height: 10px;
    background-color: #32CD32;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 42px;
    z-index: 999;
}

.ringring {
    border: 3px solid #32CD32;
    -webkit-border-radius: 30px;
    height: 20px;
    width: 20px;
    position: absolute;
    left: 37px;
    top: 1px;
    -webkit-animation: pulsate 1s ease-out;
    -webkit-animation-iteration-count: infinite; 
    opacity: 0.0;
    z-index: 9999;
}

@-webkit-keyframes pulsate {
    0% {-webkit-transform: scale(0.1, 0.1); opacity: 0.0;}
    50% {opacity: 1.0;}
    100% {-webkit-transform: scale(1.2, 1.2); opacity: 0.0;}
}


/* On Dashboard UI Profile Big */

.circle-ui {
    width: 25px;
    height: 25px;
    background-color: #32CD32;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 999;
    /* Clean white border to make it pop against the profile pic */
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* The Pulsing Halo */
.circle-ui::after {
    content: "";
    position: absolute;
    top: -2px; /* Align with the border */
    left: -2px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid #32CD32;
    /* Apply the animation */
    animation: tk-pulse 2s infinite;
    box-sizing: content-box;
}

/* Animation Definition */
@keyframes tk-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5); /* How far the pulse spreads */
        opacity: 0;           /* Fades out as it grows */
    }
}

.ringring-ui {
    border: 3px solid #32CD32;
    -webkit-border-radius: 30px;
    height: 40px;
    width: 40px;
    position: absolute;
    right: 0px;
    top: 0px;
    -webkit-animation: pulsate-ui 1s ease-out;
    -webkit-animation-iteration-count: infinite; 
    opacity: 0.0;
    z-index: 9999;
}

@-webkit-keyframes pulsate-ui {
    0% {-webkit-transform: scale(0.1, 0.1); opacity: 0.0;}
    50% {opacity: 1.0;}
    100% {-webkit-transform: scale(1.2, 1.2); opacity: 0.0;}
}


/* On Dashboard UI Profile Small */

.circle-sm-ui {
    width: 10px;
    height: 10px;
    background-color: #32CD32;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 54px;
    z-index: 999;
}

.ringring-sm-ui {
    border: 3px solid #32CD32;
    -webkit-border-radius: 30px;
    height: 20px;
    width: 20px;
    position: absolute;
    left: 49px;
    top: 1px;
    -webkit-animation: pulsate-sm-ui 1s ease-out;
    -webkit-animation-iteration-count: infinite; 
    opacity: 0.0;
    z-index: 9999;
}

@-webkit-keyframes pulsate-sm-ui {
    0% {-webkit-transform: scale(0.1, 0.1); opacity: 0.0;}
    50% {opacity: 1.0;}
    100% {-webkit-transform: scale(1.2, 1.2); opacity: 0.0;}
}

/* Inactive */

.circle-inactive {
    width: 10px;
    height: 10px;
    background-color: #bbb;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 42px;
    z-index: 999;
}

.chat-image {
    width: 240px;
    padding: 10px;
    border-radius: 10px;
    margin: 10px;
}

.direct-img-chat {
    background-color: #c9c9c994;
    color: #fff;
    float: right;
    border-radius: 10px;
}

.direct-img-chat-left {
    background-color: #c9c9c994;
    color: #fff;
    float: left;
    border-radius: 10px;
}

figcaption {
    color: #000;
    margin: 0px 14px 0px 14px;
    text-align: center;
    width: 240px;
}

.chat-file {
    color: #fff;
}

.note-editor.note-airframe .note-editing-area .note-editable, .note-editor.note-frame .note-editing-area .note-editable {
    height: 400px;
}

.item-image-box-single, .vide-box {
    display: flex;
    width: 100%;
    height: 51vh;
    background-color: #4f5962;
}

.item-image-box-single-product {
    display: flex;
    width: 100%;
    height: auto;
    background-color: #4f5962;
}

.pad-single, .vide-box {
    margin-bottom: 0rem;
    margin: 0 auto;
}

.chat-window-bottom-0 {
    position: fixed;
    bottom: 0;
    right: 30px;
}

.chat-window-bottom-1 {
    position: fixed;
    bottom: 0;
    right: 340px;
}

.chat-window-bottom-2 {
    position: fixed;
    bottom: 0;
    right: 650px;
}

/* STORIES */

.story-area {
    overflow-y: hidden;
    overflow-x: scroll;
    display: flex; /* Ensures items stay in a row */
    white-space: nowrap;
    
    /* Hide scrollbar for Chrome, Safari and Opera */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.story-area::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.story-area {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.widget {
    padding: 0;
    margin-top: 0;
    margin-bottom: 40px;
    border-radius: 6px;
}
.widget.box .widget-header {
    background: #fff;
    padding: 0px 8px 0px;
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
}
.widget .widget-header {
    border-bottom: 0px solid #f1f2f3;
}
.widget.box .widget-header {
    background: #fff;
    padding: 0px 8px 0px;
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
}
.widget .widget-header {
    border-bottom: 0px solid #f1f2f3;
}
.widget .widget-header:after {
    clear: both;
}
.widget .widget-header:before, .widget .widget-header:after {
    display: table;
    content: "";
    line-height: 0;
}
.widget-content-area {
    padding: 20px;
    position: relative;
    background-color: #fff;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}
.story-container-1 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.story-container-1 .single-create-story {
    height: 175px;
    width: 110px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-right: 10px;
    margin-bottom: 10px;
    background: #e4e4e4;
    text-align: center;
    border: 1px solid #e4e4e4;
    opacity: 0.7;
    transition: all 1s ease-in-out;
}

.story-container-1:hover, .single-create-story:hover {
    opacity: 1;
}

.single-create-story-bg:hover {
    transition: all 0.5s ease-in-out;
    transform: scale(1.02);
}

.story-container-1 .single-create-story:hover {
    background-color: floralwhite;
}

img.single-create-story-bg {
    width: 100%;
    height: 120px;
    object-fit: cover;
}
.create-story-author img {
    height: 40px;
    width: 40px;
    margin-top: -20px;
    padding: 4px;
    background: #e4e4e4;
    border-radius: 50%;
}
.story-container-1 .single-story {
    height: 175px;
    width: 110px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-right: 10px;
    margin-bottom: 10px;
}
.story-container-1 .single-story::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-image: linear-gradient(rgb(255 0 0 / 0%), black);
}
.story-text-bg {
    position: relative;
    top: 50px;
    left: 2px;
    width: 100%;    
    text-align: center;
}
.story-text-bg-popup {
    color: #fff;
    font-size: 16px;
    font-family:sans-serif;
    background-color: darkgray;
    display: flex;
    width: 500px;
    height: 500px;
    padding: 40px;
    text-align: center !important;
    border: 1px solid #000;
    vertical-align: middle;
    object-fit: cover;
    margin: 0 auto !important;
}

img.single-story-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-container-1 .story-author {
    position: absolute;
    top: 50%;
    left: 0px;
    transform: translateY(-50%);
    right: 0px;
    text-align: center;
    z-index: 99;
    cursor: pointer;
}

.story-author img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    border: 1px solid white;
    padding: 4px;
}

.story-not-viewed img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    border: 3px solid #ed1e24;
    padding: 4px;
}

.story-container-1 .story-author p {
    color: #fff;
    width: 100%;
    margin: 5px 0px 0px 0px;
    font-weight: 600;
    font-size: 12px;
}

.create-story-author p {
    margin: 0px;
    font-size: 10px;
    font-weight: 500;
}

.modal-content {
    width: 50vw;
}

.video-box-profile {
    width: 100%;
    height: auto;
}

.fa-2x {
    font-size: 2em;
    margin-top: 5px;
}

.story-content {
    margin-bottom: 0px;
    margin: 0 auto;
}

.story-div {
    background-color: #e5e5e5;
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 6px;
}

.email_img {
    width: 120px;
    height: auto;
}

#deleteAttachment {
    color: red;
    font-weight: 900;
}

.direct-chat-img {
    margin: 0 4px 0 4px;
}

.replied_text {
    font-size: 10px;
    color: darkgrey;
    font-style: italic;
    float: right;
}

.card-widget-feeds {
    border: 0;
    position: relative;
    width: 40%;
    margin: 0 auto;
    margin-top: 10px;
}

.item-image-box-feeds {
    display: flex;
    width: 100%;
    height: 500px;
    background-color: #4f5962;
}

.pad-feeds {
    margin: 0 auto;
}

.product-message {
    margin-bottom: 20px;
    margin-top: 20px;
}

.btn-default {
    margin: 1px;
}

.prod_description {
    margin-bottom: 10px !important;
}

.prod_details {
    font-size: 12px;
}

.source-now {
    font-size: 12px;
}

.fa-search, .fa-download {
    font-size: 10px;
}

.item-box {
    height: auto;
    min-height: auto;
    max-height: auto;
}


/* Text Status */
.post-it {
  width:auto;
  height:340px;
  position:relative;
  background:#ffa;
  overflow:hidden;
  padding:20px;
  border-radius:0 0 0 30px/45px;
  box-shadow:
    inset 0 -40px 40px rgba(0,0,0,0.2),
    inset 0 25px 10px rgba(0,0,0,0.2),
    0 5px 6px 5px rgba(0,0,0,0.2);
  font-family: 'Permanent Marker', cursive;
  line-height:1.7em;
  font-size:14px;
  -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);

  color:#130d6b;
}

.post-it-video video {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    border-radius: 10px;
}

.story-content {
    width: 80%;
    height: 80%;
    margin-top: 10px;
}

.story-content video {
    margin-top: 10px;
}

.story-content img {
    border-radius: 10px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.post-it li {
  cursor:pointer; 
}

.post-it:before {
  content:"";
  display:block;
  position:absolute;
  width:20px;
  height:25px;
  background:#ffa;
  box-shadow:
    3px -2px 10px rgba(0,0,0,0.2),
    inset 15px -15px 15px rgba(0,0,0,0.3);
  left:0;
  bottom:0;
  z-index:2;
  transform:skewX(25deg);
}

.post-it:after {
  content:"";
  display:block;
  position:absolute;
  width:75%;
  height:20px; 
/*  border-top:3px solid #130d6b;*/
  border-radius: 50%;
  bottom:0px;
  left:10%;
}

.single-story-section {
    border-bottom: 0.5px solid #dfe0e0;
    padding: 20px 0px 20px 0px;
}

.item-image-box-modal img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.story-video-preview {
    position: absolute;
    top: -200px;
    left: -200px;
    opacity: 0.5;
    z-index: -999 !important;
}

.status-icon {
    width: 80%;
}

.photo-status-section, .video-status-section, .text-status-section {
    display: none;
}

.div-text-status {
    max-width: 70%;
    margin: 0 auto;
}

/* Brand Guidelines Implementation */


[class*="sidebar-dark-"] .nav-sidebar > .nav-item.menu-open > .nav-link, [class*="sidebar-dark-"] .nav-sidebar > .nav-item:hover > .nav-link, [class*="sidebar-dark-"] .nav-sidebar > .nav-item > .nav-link:focus {
    background-color: #ed1e24;
}

[class*="sidebar-dark-"] .nav-sidebar > .nav-item > .nav-link.active {
    box-shadow: 0;
}

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active, .sidebar-light-primary .nav-sidebar>.nav-item>.nav-link.active {
    background-color: #ed1e24;
    color: #fff;
}

[class*=sidebar-dark-] {
    background-color: #333;
}

.btn-primary {
    color: #fff;
    background-color: #333;
    border-color: #333;
    box-shadow: none;
}

.btn-primary:hover {
    color: #fff;
    background-color: #ed1e24;
    border-color: #ed1e24;
}

.btn-info {
    color: #fff;
    background-color: #333;
    border-color: #333;
    box-shadow: none;
}

.btn-info:hover {
    color: #fff;
    background-color: #ed1e24;
    border-color: #ed1e24;
    box-shadow: none;
}

.btn-danger:hover {
    color: #fff;
    background-color: #ed1e24;
    border-color: #ed1e24;
}

.aligncenter {
    margin-top: 3px !important;
}

.card-primary.card-outline {
    border-top: 3px solid #ed1e24;
}

.card-primary:not(.card-outline)>.card-header {
    background-color: #ed1e24;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: #fff;
    background-color: #ed1e24;
}

.nav-pills .nav-link:not(.active):hover {
    color: #ed1e24;
}

.btn-warning {
    color: #fff;
    background-color: #333;
    border-color: #333;
    border-radius: .2rem !important;
}

.btn-warning:hover {
    color: #000 !important;
    background-color: #f4f4f5;
    border-color: #f4f4f5;
    border-radius: .2rem !important;
}

.direct-chat-success .right>.direct-chat-text {
    background-color: #ed1e24;
    border-color: #ed1e24;
    color: #fff;
}

.direct-chat-success .right>.direct-chat-text::after, .direct-chat-success .right>.direct-chat-text::before {
    border-left-color: #ed1e24;
}

/*
.direct-chat-text {
    border-radius: .3rem;
    background-color: #f0f0f0;
    border: 1px solid #f0f0f0;
    color: #444;
    margin: 5px 0 0 50px;
    padding: 5px 10px;
    position: relative;
}

.direct-chat-text::after, .direct-chat-text::before {
    border: solid transparent;
    border-right-color: #f0f0f0;
    content: " ";
    height: 0;
    pointer-events: none;
    position: absolute;
    right: 100%;
    top: 15px;
    width: 0;
}
*/

.direct-img-chat {
    background-color: #ed1e24;
    color: #fff;
    float: right;
    border-radius: 10px;
}

.direct-img-chat figcaption {
    color: #fff;
    margin: 0px 14px 0px 14px;
    text-align: center;
    width: 240px;
}

.direct-img-chat-left figcaption {
    color: #444;
}

.chat-file i {
    color: #fff;
}

.bg-info {
    background-color: #ed1e24 !important;
}

.btn-success {
    color: #fff;
    background-color: #333;
    border-color: #333;
    box-shadow: none;
}

.btn-success:hover {
    color: #fff;
    background-color: #ed1e24;
    border-color: #ed1e24;
    box-shadow: none;
}

.icheck-success>input:first-child:not(:checked):not(:disabled):hover+input[type=hidden]+label::before, .icheck-success>input:first-child:not(:checked):not(:disabled):hover+label::before {
    border-color: #333;
}

a {
    color: #333;
    text-decoration: none;
    background-color: transparent;
}

a.text-muted:hover {
    color: #ed1e24 !important;
}

.info-box .progress-description, .info-box .info-box-text {
    font-size: 14px !important;
}

.info-box:hover {
    background-color: #f4f4f5;
}

.text-info {
    color: #ed1e24 !important;
}

.product_information {
    background-color: transparent;
}

.add-photos-icon {
    width: 30px;
}

#scrollToTop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: transparent;
  color: white;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.scrollToTopImg {
    width: 30px;
}

.btn-primary.focus, .btn-primary:focus {
    color: #FFF;
    background-color: #212529 !important;
    border-color: #212529 !important;
    box-shadow: 0 0 0 0 rgba(38,143,255,.5) !important;
}

.left-link-align {
    font-size: 14px;
    padding-top: 20px;
    float: left;
}

.right-link-align, .already-account {
    font-size: 14px;
    padding-top: 20px;
    float: right;
}

#btnSignup, #btnSignin {
    float: right;
    width: 160px;
    background-color: #ed1e24;
    border-color: #ed1e24;
}

#changePassword {
    background-color: #ed1e24;
    border-color: #ed1e24;
}

.login-page {
        margin: 2rem auto !important;
}

.login-box {
    min-height: 717.766px;
    height: auto !important;
    width: 50% !important;
}

.remember, .already-account, .login-signup-link {
    font-size: 14px;
}

.terms {
    font-size: 12px;
    font-weight: normal !important;
}

.register-box {
    width: 50%;
    padding: 60px 0px 60px 0px;
}

.login-box.important-documents {
    width: 80%;
    margin-top: 80px !important;
}

.red-link {
    color: #000; 
}

.verified-badge {
    width: 16px !important;
    margin-left: 4px;
}

.no-margin-top {
    padding-top: 10px !important;
}

.tabBtn {
    width: 50%;
    padding: 20px;
    background-color: #fff;
    display: block !important;
    color: #000;
    cursor: pointer;
    text-align: center;
}

.tabBtn:hover {
    color: #000 !important;
    background-color: #fff;
}

.tabBtn a {
    color: #000;
}

.tabBtn:hover a {
    color: #000;
}

.boxed-card {
    border-radius: 0px;
}

.fade:not(.show) {
    opacity: 1;
}

.tabBtn:has(a.active), .tabBtn a.active {
    background-color: #ed1e24;
    color: #fff;
}

.currency-region-dropdown {
    background-color: #ed1e24;
    color: #fff !important;
}

.currency-region-dropdown a {
    color: #fff !important;
}

.input-group-sm > .form-control:not(textarea), .input-group-sm > .custom-select {
    height: calc(1.8125rem + 12px);
}

.btn-rightside {
    float: right;
}

.text-post-box {
    height: 410px;
    min-height: 410px;
    max-height: 410px;
}

.form-check {
    padding-right: 12px;
}

.register-page {
    -ms-flex-align: center;
    align-items: center;
    background-color: #e9ecef;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    height: auto;
    -ms-flex-pack: center;
    justify-content: center;
    width: 50%;
    margin: 2rem auto;
    
}

.widget-user-desc {
    margin-bottom: 0rem !important;
}

.account-categories {
    background-color: aliceblue;
    padding: 10px;
    border-radius: 4px;
    color: black;
    width: auto;
    opacity: 0.5;
    text-align: center;
}

.cover-flag {
    width: 24px;
}

.text-muted {
    font-size: 14px;
}

.text-muted-viewed-status {
    font-size: 12px;
    padding: 4px;
    border-radius: 4px;
}

.text-muted-add-category {
    font-size: 12px;
    padding: 4px;
    border-radius: 4px;
    font-style: italic;
}

.text-alignment {
    margin-top: 6px;
}

.white-box-single-product {
    background-color: #fff;
    padding: 1rem;
    border-radius: 0 0 10px 10px;
/*    box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);*/
    margin: 0 0 1rem 0;
    border: 0 solid rgba(0, 0, 0, 0.125);
}

.product-title-description {
    padding: 1rem 0 0 0;
}

.details-col {
    width: 30%;
    font-weight: bolder;
}

.chat-section-single-product {
    padding: 1rem 1.5rem 1rem 1.5rem;
}

.single-product-img-view {
    height: auto;
}

.news-grid-box-description {
    height: 650px;
}

.product-inquiry-text {
    padding-top: 1rem;
    display:inline;
    height: auto;
}

.child {
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
}

.news-left-image {
    float: left !important;
    margin: 0 10px 0 0;
}

.news-left-image img {
    border-radius: 10px;
}

.brand-link .brand-image {
    float: left;
    line-height: .8;
    margin-left: .8rem;
    margin-right: .5rem;
    margin-top: 0px;
    max-height: 25px;
    width: auto;
}

.delisted_item {
    background-color: #f2f2f2;
}

.btns-in-row {
    width: 50% !important;
}

.dark-menu {
    background-color: darkgray !important;
    color: black !important;
    
}

.scrollable-div {
    overflow-y: scroll;
}

.btn-danger {
    color: #fff;
    background-color: #ed1e24;
    border-color: #ed1e24;
    box-shadow: none;
}

.inquiry-product-img {
    width: 50px;
    margin-right: 10px;
}

.inquiries-link {
    padding-top: 12px;
}

.product-view-flag {
/*    display: inline-block;*/
/*    float: right !important;*/
    width: auto !important;
    height: 14px !important;
}

.breadcrumb {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin-bottom: 0rem;
    list-style: none;
     background-color: transparent !important; 
    border-radius: 0.25rem;
    text-align: right;
    float: right;
}

.user-block {
    float: none; 
}

.connect-btn {
    background-color: transparent;
    border: none;
    padding: 4px;
    font-size: 12px;
    color: #000;
}

.thread-box, .thread-box > .card-header {
    background-color: #D3D3D3 !important;
    border-radius: 10px;
    border-bottom: 0px !important;
    margin-bottom: 4px !important;
}

.thread-box-viewed, .thread-box-viewed > .card-header {
    background-color: #ebebeb !important;
    border-radius: 10px;
/*    border: 1px solid #D3D3D3 !important;*/
    border-bottom: 0px !important;
    margin-bottom: 4px !important;
}

.thread-box-viewed, .thread-box-viewed > .card-header:hover {
    background-color: #f0f0f0 !important;
    border-radius: 10px;
/*    border: 1px solid #D3D3D3 !important;*/
    border-bottom: 0px !important;
    margin-bottom: 4px !important;
}

.card-comments .card-comment:last-of-type {
    padding-top: 10px;
}

.holographic-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: .5em;
  padding: 10px 20px 10px 20px;
  transition: all 0.5s ease;
}

.holographic-btn::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  
  background: linear-gradient(
    0deg, 
    transparent, 
    transparent 30%, 
    rgba(255,255,255,0.3)
  );
  transform: rotate(-45deg);
  transition: all 0.5s ease;
  opacity: 0;
  
}

.holographic-btn:hover::before {
  opacity: 1;
  transform: rotate(-45deg) translateY(300%);
}

.product-review-rate {
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    padding: 5px;
    border-radius: 4px;
    margin-right: 4px;
}

.numberBadge {
    background-color: #ed1e24;
    color: #fff;
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    
}

.review_status {
    font-size: 10px;
    border-radius: 4px;
    padding: 4px;
    background-color: #333;
    color: white;
}

/* Avatar Cluster Cloud - Franchise Module */

.avatar-cloud {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
/*  background: radial-gradient(circle at center,#f8f9fa 0%,#e9ecef 100%);*/
}
.avatar-bubble {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
  animation: float 20s linear infinite;
}
.avatar-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/*
.avatar-bubble.online {
  box-shadow: 0 0 15px 4px rgba(40,167,69,0.5);
}
*/

.avatar-bubble.online {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 15px 4px rgba(40,167,69,0.4);
  animation:
    float 20s linear infinite,
    pulseGlow 2.5s ease-in-out infinite; /* glow pulse */
}

@keyframes float {
  0%   {transform: translateY(0) rotate(0deg);}
  50%  {transform: translateY(-20px) rotate(10deg);}
  100% {transform: translateY(0) rotate(0deg);}
}

@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 10px 3px rgba(40,167,69,0.3); }
  50% { box-shadow: 0 0 20px 6px rgba(40,167,69,0.8); }
}

/* cards & spacing */
.card { border-radius: 12px; }
.card-header { background: transparent; border-bottom: none; padding-bottom: .5rem; }
.small-box { border-radius: 10px; padding: 1rem; }
/* right panel */
#selectedAvatar { border: 4px solid #f8f0ef; box-shadow: 0 3px 12px rgba(0,0,0,0.08); }
/* network node colors via vis options; nothing here to animate */

.product-box {
    border-radius: 0px !important;
}

.btn-admin {
    
    width: 18.85%;
    
}

/* --- Empty State Styling --- */
.no-product-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    width: 100%;
    text-align: center;
    background: #ffffff;
    border-radius: 15px;
    border: 2px dashed #e9ecef;
    margin: 20px 0;
    transition: border-color 0.3s ease;
}

.no-product-container:hover {
    border-color: #ed1e24;
}

.empty-state {
    max-width: 450px;
    padding: 20px;
}

.icon-wrapper {
    position: relative;
    font-size: 80px;
    color: #dee2e6;
    margin-bottom: 30px;
}

.icon-wrapper i {
    position: relative;
    z-index: 2;
}

/* Subtle pulse behind the icon */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 50%;
    animation: softPulse 3s infinite;
    z-index: 1;
}

.empty-state h3 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.empty-state p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

@keyframes softPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
}




/* --- Marketplace Layout Enhancements --- */

.product-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    border-radius: 15px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-white {
    background: #fff;
    color: #333;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.sticky-top {
    z-index: 1020;
}

.country-scroll::-webkit-scrollbar {
    width: 5px;
}
.country-scroll::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .content-header h1 { font-size: 1.5rem; }
    .sticky-top { position: relative !important; top: 0 !important; }
}

.btn-outline-tk {
    background-color: #fff;
    border-color: #ed1e24;
}

.btn-outline-tk:hover {
    background-color: #ed1e24;
    border-color: #ed1e24;
    color: #fff !important;
}






/* --- Professional Error State Styling --- */

.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background: #fcfcfc;
    border-radius: 5px;
    border: 1px solid #eee;
    padding: 40px;
}

.error-content {
    max-width: 100%;
}

.error-icon-box {
    position: relative;
    display: inline-block;
}

.server-icon {
    font-size: 80px;
    color: #cbd5e0;
    position: relative;
}

.error-bolt {
    position: absolute;
    top: 0;
    right: -10px;
    font-size: 35px;
    color: #e53e3e;
    animation: boltFlicker 1.5s infinite;
}

/* Psychological Softness: Make the error feel less "scary" */
@keyframes boltFlicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.error-content h2 {
    font-size: 28px;
    letter-spacing: -0.5px;
}

.error-content p {
    font-size: 16px;
    line-height: 1.6;
}

/* Hover effects for recovery */
.btn-primary:hover i {
/*    transform: rotate(180deg);*/
    transition: 0.4s;
}






/* --- Professional Product Error State --- */

.product-error-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    width: 100%;
}

.error-card {
    background: #ffffff;
    max-width: 550px;
    width: 100%;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #f1f1f1;
}

/* Icon Animation Logic */
.error-visual {
    margin-bottom: 30px;
}

.cloud-icon {
    font-size: 70px;
    color: #cbd5e0;
    position: relative;
    display: inline-block;
}

.lightning-bolt {
    position: absolute;
    top: 20px;
    right: -5px;
    font-size: 30px;
    color: #f6ad55; /* Warm Warning Orange */
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.1); }
}

.error-title {
    font-weight: 800;
    color: #2d3748;
    font-size: 26px;
    margin-bottom: 15px;
}

.error-message {
    color: #718096;
    line-height: 1.7;
    margin-bottom: 35px;
    font-size: 16px;
}

/* Button UI */
.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.btn-retry {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-retry:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-support {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-support:hover {
    background: #edf2f7;
    color: #2d3748;
}

/* Footer Metadata */
.error-footer {
    border-top: 1px solid #edf2f7;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.error-code {
    font-family: monospace;
    background: #fef2f2;
    padding: 2px 8px;
    border-radius: 4px;
    color: #f87171;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .error-card { padding: 30px; }
    .error-actions { flex-direction: column; }
    .error-footer { flex-direction: column; gap: 10px; }
}



/* --- Trade Knock Premium Empty State --- */

.tk-empty-state-wrapper {
    width: 100%;
    padding: 20px 20px;
    display: flex;
    justify-content: center;
}

.tk-empty-card {
    max-width: 100%;
    width: 100%;
    text-align: center;
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 30px;
    border: 2px dashed #e2e8f0; /* Signifies an empty slot in the market */
    transition: border-color 0.3s ease;
}

.tk-empty-card:hover {
    border-color: #ed1e24;
}

/* Visual Icon Styling */
.tk-visual-area {
    position: relative;
    display: inline-block;
    margin-bottom: 35px;
}

.tk-icon-circle {
    width: 100px;
    height: 100px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #94a3b8;
    position: relative;
    z-index: 2;
}

/* Floating dots animation to make the page feel "Alive" */
.tk-floating-dots span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    opacity: 0.6;
    animation: tk-float 3s infinite ease-in-out;
}

.tk-floating-dots span:nth-child(1) { top: -10px; left: -10px; animation-delay: 0s; }
.tk-floating-dots span:nth-child(2) { bottom: 20px; right: -15px; background: #6610f2; animation-delay: 1s; }
.tk-floating-dots span:nth-child(3) { top: 20px; right: -25px; background: #00d4ff; animation-delay: 2s; }

@keyframes tk-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.tk-title {
    font-weight: 800;
    font-size: 28px;
    color: #1e293b;
    margin-bottom: 15px;
}

.tk-description {
    color: #64748b;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Buttons */
.tk-action-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn-tk-primary, .btn-tk-secondary {
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-tk-primary {
    background: #ed1e24;
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

.btn-tk-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-tk-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(0, 123, 255, 0.3); color: #fff; }
.btn-tk-secondary:hover { background: #e2e8f0; }

.tk-help-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 25px;
    font-size: 14px;
    color: #94a3b8;
}

.tk-help-footer a {
    color: #ed1e24;
    font-weight: 600;
    text-decoration: none !important;
}

/* Modal Positioning & Hidden State */
.tk-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.tk-modal-overlay.active { display: flex; }

.tk-modal-card {
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Header */
.tk-modal-header {
    background: #fff;
    color: #888;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tk-close-x {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
}

/* Tabs Alignment */
.tk-status-selector {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tk-type-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: #fcfcfc;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #666;
    transition: 0.2s;
}

.tk-type-btn.active {
    background: #fff;
    color: #ed1e24;
    border-bottom: 3px solid #ed1e24;
}

/* Form Styling */
.tk-modal-body { padding: 20px; }

.tk-drop-box {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 15px;
    color: #888;
}

.tk-drop-box:hover { border-color: #ed1e24; background: #fff8f8; }

.tk-text-area-wrapper textarea {
    width: 100%;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 8px;
    min-height: 120px;
    resize: none;
    font-family: inherit;
}

.tk-submit-btn {
    width: 100%;
    background: #ed1e24;
    color: white;
    border: none;
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

/* Blog Card Hover Effects */
.blog-card {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.card-img-container {
    position: relative;
    overflow: hidden;
}

.share-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: #e1676a !important;
    padding: 10px;
    display: flex;
    justify-content: center;
    transition: bottom 0.3s ease;
}

.blog-card:hover .share-overlay {
    bottom: 0;
}

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #007bff, #00d4ff);
    width: 0%;
}

/* Featured Badge */
.category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ED1E24;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

.rounded-xl { border-radius: 20px !important; }





/* --- News Room Premium CSS --- */

:root {
    --tk-blue: #007bff;
    --tk-dark: #121212;
}

.news-terminal {
    background: #f4f7f6;
    min-height: 100vh;
}

/* 1. Ticker Styling */
.news-ticker-wrap {
    background: var(--tk-dark);
    color: white;
    padding: 10px 0;
    display: flex;
    overflow: hidden;
    font-weight: 600;
}
.ticker-label {
    background: #ed1e24;
    padding: 0 20px;
    z-index: 10;
    box-shadow: 10px 0 20px rgba(0,0,0,0.5);
}
.ticker-item { margin-right: 50px; font-size: 0.9rem; }

/* 2. Hero Section */
.news-hero-card {
    position: relative;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: flex-end;
    padding: 60px;
}
.news-hero-card img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 10s linear;
}
.news-hero-card:hover img { transform: scale(1.1); }
.news-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 1;
}
.news-hero-content { position: relative; z-index: 2; max-width: 800px; }

/* 3. Glass Cards */
.news-glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}
.news-glass-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}
.news-img-box {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}
.news-img-box img { width: 100%; height: 100%; object-fit: cover; }

.news-date {
    position: absolute; bottom: 10px; right: 10px;
    background: white; color: black; font-weight: 800;
    padding: 5px 10px; border-radius: 8px; font-size: 0.8rem;
}

.news-cat {
    background: #ed1e24; color: #fff;
    padding: 3px 10px; border-radius: 5px; font-weight: 700; font-size: 11px;
}

.news-link {
    display: inline-block; margin-top: 15px; font-weight: 700;
    color: var(--tk-dark); text-decoration: none;
}
.news-link:hover i { transform: translateX(5px); transition: 0.3s; }

/* Glow Animation */
.glow-badge { animation: pulseGlow 2s infinite; }
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.tk-profile-pic {
    /* 1. Force equal dimensions */
    width: 150px; 
    height: 150px;

    /* 2. The "Magic" that prevents stretching */
    object-fit: cover;
    object-position: center; /* Keeps the face centered */

    /* 3. The Perfect Circle */
    border-radius: 50%;

    /* 4. Professional Styling (Optional) */
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tk-profile-header {
    /* 1. Define the area */
    width: 100%;
    height: 300px; /* Adjust this to your design height */
    
    /* 2. The Background Magic */
    background-size: cover;      /* Fills the area completely */
    background-position: center;  /* Keeps the middle of the photo visible */
    background-repeat: no-repeat; /* Stops it from tiling */
    
    /* 3. Optional: Professional Touches */
    background-color: #f4f4f4;    /* Fallback color while image loads */
    border-radius: 8px;           /* Soft corners for modern UI */
    position: relative;           /* Allows you to absolute-position the PFP inside */
}

:root {
    --tk-primary: #ed1e24;
    --tk-dark: #232323;
    --tk-gray: #f8f9fa;
}

.tk-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
}

.tk-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    cursor: pointer;
    overflow: hidden;
    /* Smooth Transition for all properties */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- HOVER EFFECT --- */
.tk-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(237, 30, 36, 0.1);
    border-color: rgba(237, 30, 36, 0.2);
}

/* Subtle accent line that appears on hover */
.tk-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 0;
    background: var(--tk-primary);
    transition: height 0.3s ease;
}

.tk-stat-card:hover::before {
    height: 100%;
}

/* --- CLICK EFFECT --- */
.tk-stat-card:active {
    transform: scale(0.96);
    background-color: var(--tk-gray);
}

.tk-card-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Icon Box Styling */
.tk-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(237, 30, 36, 0.05);
    color: var(--tk-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.tk-stat-card:hover .tk-icon-box {
    background: var(--tk-primary);
    color: #fff;
    transform: rotate(10deg);
}

/* Text Content */
.tk-label {
    display: block;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 4px;
}

.tk-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--tk-dark);
    margin: 0;
}

.tk-trend {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.tk-trend.up { color: #28a745; background: rgba(40, 167, 69, 0.1); }
.tk-trend.down { color: #dc3545; background: rgba(220, 53, 69, 0.1); }

:root {
    --tk-primary: #ed1e24;
    --tk-primary-glow: rgba(237, 30, 36, 0.15);
    --tk-dark: #1a1a1a;
}

.tk-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px;
}

.tk-action-card {
    text-decoration: none !important;
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    display: block;
    position: relative;
    border: 1px solid #f0f0f0;
    /* Smooth, bouncy transition */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.tk-action-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
    position: relative;
}

/* --- THE HOVER MAGIC --- */
.tk-action-card:hover {
    transform: scale(1.03) translateY(-5px);
    border-color: var(--tk-primary);
    background: #fff;
    /* Red glowing shadow */
    box-shadow: 0 20px 40px var(--tk-primary-glow);
}

/* Subtle background accent that slides in */
.tk-action-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0; height: 100%;
    background: linear-gradient(90deg, rgba(237, 30, 36, 0.03) 0%, transparent 100%);
    transition: width 0.4s ease;
    border-radius: 20px;
}

.tk-action-card:hover::before {
    width: 100%;
}

/* --- ICON STYLING --- */
.tk-action-icon {
    width: 64px;
    height: 64px;
    background: #fdf2f2; /* Light red tint */
    color: var(--tk-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.4s ease;
}

.tk-action-card:hover .tk-action-icon {
    background: var(--tk-primary);
    color: #fff;
    transform: rotate(-10deg) scale(1.1);
}

/* 1. Set the initial "Hidden" state */
.tk-plus-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--tk-primary); /* Keeping it brand-red now */
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;

    /* --- THE FIX --- */
    opacity: 0;                /* Invisible by default */
    transform: scale(0);       /* Shrunk to nothing */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy pop-in effect */
}

/* 2. Show it only on Hover */
.tk-action-card:hover .tk-plus-badge {
    opacity: 1;                /* Fade in */
    transform: scale(1.2);     /* Pop up slightly larger for impact */
}

/* --- TEXT CONTENT --- */
.tk-action-title {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    color: var(--tk-dark);
    letter-spacing: -0.5px;
}

.tk-action-desc {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #888;
    line-height: 1.4;
}

/* --- CLICK FEEDBACK --- */
.tk-action-card:active {
    transform: scale(0.98);
    transition: 0.1s;
}

:root {
    --tk-primary: #ed1e24;
    --tk-white: #ffffff;
    --tk-dark-text: #1e1e1e;
    --tk-soft-border: #f1f1f1;
}

.tk-enterprise-container {
    background: var(--tk-white);
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 30px;
}

/* 1. Stage Styling */
.tk-stage {
    height: 240px;
    position: relative;
    background-size: cover;
}

.tk-stage-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}

.tk-category-strip {
    position: absolute;
    bottom: 20px;
    left: 200px; /* Offset to clear the PFP area */
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 6px 15px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 80%;
    width: 100%;
}

/* 2. Command Bar Logic */
.tk-command-bar {
    padding: 0 30px;
    height: 100px;
    background: #fff;
    position: relative;
}

.tk-command-inner {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.tk-profile-frame {
    margin-top: -80px; /* Controlled overlap */
    z-index: 10;
}

.tk-pfp-container {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    background: #fff;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.tk-pfp-container img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* 3. Identity Text */
.tk-identity-text {
    padding-left: 25px;
    flex: 1;
}

.tk-main-name a {
    color: var(--tk-dark-text);
    font-weight: 800;
    font-size: 26px;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.tk-verified-check {
    color: var(--tk-primary);
    font-size: 18px;
    margin-left: 5px;
}

.tk-sub-info {
    font-size: 15px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
}

.tk-flag-mini { width: 18px; border-radius: 2px; }

/* 4. Performance Tiles */
.tk-performance-tiles {
    display: flex;
    align-items: center;
    background: #fcfcfc;
    border: 1px solid var(--tk-soft-border);
    padding: 10px 20px;
    border-radius: 12px;
    margin-top: 18px;
}

.tk-tile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tk-tile-icon {
    font-size: 18px;
    color: var(--tk-primary);
    background: rgba(237, 30, 36, 0.05);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.tk-tile-num {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--tk-dark-text);
    line-height: 1;
}

.tk-tile-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 0.5px;
}

.tk-tile-divider {
    width: 1px;
    height: 30px;
    background: #eee;
    margin: 0 20px;
}

.tk-pfp-container {
    width: 150px;
    height: 150px;
    position: relative; /* This is the anchor */
    background: #fff;
    padding: 5px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.tk-pfp-container img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

/* The Online Indicator */
.circle-ui {
    width: 20px;
    height: 20px;
    background-color: #32CD32;
    border-radius: 50%;
    
    /* Position relative to .tk-pfp-container */
    position: absolute; 
    top: -5px;     /* Pull it up slightly */
    right: -5px;   /* Pull it right slightly */
    
    /* Ensure it stays on top */
    z-index: 99; 
    
    /* High-end styling */
    border: 3px solid #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* The Pulse Effect (Must be z-indexed lower than the dot but higher than the image) */
.circle-ui::after {
    content: "";
    position: absolute;
    top: -5px; 
    left: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #32CD32;
    animation: tk-pulse 2s infinite;
    z-index: -1; 
}

.tk-cover-animated {
    /* Ensure the image is slightly larger so there is 'slack' to move */
    background-size: 110% auto !important; 
    background-repeat: no-repeat !important;
    
    /* Attach the animation */
    animation: slowPan 40s ease-in-out infinite !important;
    
    /* Smooth transitions for high-end feel */
    transition: background-image 0.5s ease-in-out !important;
    position: relative !important;
    overflow: hidden !important;
}

/* 1. Create the Shadow Overlay */
.tk-cover-animated::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    
    /* 2. Linear Gradient: Starts Dark (70% Opacity), Fades to Clear */
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.7) 0%, /* Dark Top */
        rgba(0, 0, 0, 0) 50% /* Fades to Transparent mid-way down */
    );
    
    pointer-events: none; /* Allows user to click things 'behind' the shadow */
    z-index: 1; /* Shadow sits over the image */
}

.tk-main-name {
    margin-bottom: -4px;
}

/* Scroll-to-top Arrow Fixed Positioning */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--tk-red);
  color: #fff;
  border-radius: 50%;
  display: none; 
  align-items: center;
  justify-content: center;
  z-index: 9999;
  border: none;
  box-shadow: 0 10px 25px rgba(237,30,36,0.3);
  cursor: pointer;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-to-top:hover { transform: scale(1.1) translateY(-5px); background: var(--tk-dark); }
.back-to-top i { font-size: 20px; }

/* Sidebar Heading Enhancement */
/* 1. Reset the Icon Container to be compact */
.nav-sidebar .nav-link i.nav-icon {
    width: 24px !important;    /* Small and tight */
    margin-right: 10px !important;
    font-size: 1rem !important;
    color: #888e94;            /* Soft grey by default */
    transition: color 0.2s ease, transform 0.2s ease;
    text-align: center;
    background: transparent !important; /* Remove backgrounds for space */
    border: none !important;
}

/* 2. Simple, Attractive Active/Hover State */
.nav-sidebar .nav-item:hover > .nav-link i.nav-icon,
.nav-sidebar .nav-item .nav-link.active i.nav-icon {
    color: #ed1e24 !important; /* Pure Trade Knock Red */
}

/* 3. The "Minimalist Indicator" - A thin bar on the left */
.nav-sidebar .nav-link {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    padding-left: 15px !important;
}

.nav-sidebar .nav-item:hover > .nav-link,
.nav-sidebar .nav-item .nav-link.active {
    background: rgba(237, 30, 36, 0.04) !important; /* Barely-there red tint */
    border-left: 3px solid #ed1e24 !important;    /* Clean brand line */
    color: #fff !important;
}

/* 4. Subtle Micro-Interaction */
.nav-sidebar .nav-item:hover .nav-icon {
    transform: scale(1.1); /* Very slight pop without shifting layout */
}

/* Styling for Under-Development Modules */
/* The 'In-Development' state for nav-link children */
.nav-item .nav-link.dark-menu {
    color: #475569 !important; /* High-visibility slate grey */
    font-weight: 500;
    opacity: 1; /* Ensure full text visibility */
    background: rgba(0, 0, 0, 0.02);
    border-left: 3px solid #94a3b8 !important; /* Neutral solid bar */
    display: flex;
    align-items: center;
    cursor: wait; /* "Work in progress" cursor */
    pointer-events: none;
    position: relative;
    padding-left: 15px !important;
}

/* The 'Pana' (Wrench) Icon Styling */
.nav-item .nav-link.dark-menu .nav-icon {
    color: #64748b !important;
    font-size: 0.9rem;
    margin-right: 12px;
}

/* Replacing the original icon with a Wrench (Pana) via CSS if needed, 
   OR styling the existing one */
.nav-item .nav-link.dark-menu .nav-icon::before {
    content: "\f0ad"; /* FontAwesome Wrench (Pana) */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* Professional 'STAGING' Label */
.nav-item .nav-link.dark-menu::after {
    content: 'STAGING'; 
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #ffffff;
    background: #64748b; /* Professional dark slate */
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: auto;
    text-transform: uppercase;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Interactive Hover (Non-active) */
.nav-item:hover .nav-link.dark-menu {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #fff !important;
}

.truncate-text {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limits to exactly 2 lines */
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
}