
:root {
    --maxWidth: 685px;
    --grad1: linear-gradient(#f6f9ff, #f1f1f1), linear-gradient(to right, #e5b8bf, #6FBAFB);
    --color1: #ffffff;
    --color2: #525249;
    --color3:#3c3c38;
    --color4: #616161;
    --color7: #c1c0b4;
    --svg-filter: invert(0.7) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(95%) contrast(91%);
    --footer-link: url('/static/images/footer-bg-3-light.png');
    --color17: #ff9500;
    --svg-filter2: invert(0.8);
    --color39:#edede5;
    --color8: #d3d3d3;
    --color9: #333333;
    --color10: #d1d1d1;
    --color11: #9e9e9e;
    --color12:#3364f7;
    --color13: #2757e8;
    --color14: #f3f3f3;
}

:root.dark-theme{
    --maxWidth: 685px;
    --grad1: linear-gradient(#111317, #1b1f28), linear-gradient(to right, #CF6978, #6FBAFB);
    --color1: #0c0d0f;
    --color2:#ffffff;
    --color3: #dfdfdf;
    --color4:#8d8d8d;
    --color7: #343434;
    --svg-filter: none;
    --footer-link: url('/static/images/footer-bg-3.png');
    --color17: #ffffff;
    --svg-filter2: invert(0);
    --color39:#2a2a2a;;
    --color8: #4f504a;
    --color9: #c6c6c6;
    --color10: #202020;
    --color11: #3f3f3f;
    --color12:#6a90ff;
    --color13: #4a6fdc;
    --color14: #202020;
}

/* --- Athiti Latin Letters --- */

@font-face {
    font-family: 'Athiti-Latin';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/athiti/pe0sMISdLIZIv1wAoDBCBfe_Kdxicw.woff2') format('woff2');
    unicode-range: U+0020-002F, U+003A-007E; /* basic Latin punctuation and letters */
}

@font-face {
    font-family: 'Athiti-Latin';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/athiti/pe0vMISdLIZIv1wICxJXKNWyAw.woff2') format('woff2');
    unicode-range: U+0020-002F, U+003A-007E;
}

@font-face {
    font-family: 'Athiti-Latin';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/athiti/pe0sMISdLIZIv1wA-DFCBfe_Kdxicw.woff2') format('woff2');
    unicode-range: U+0020-002F, U+003A-007E;
}

@font-face {
    font-family: 'Athiti-Latin';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/athiti/pe0sMISdLIZIv1wA1DZCBfe_Kdxicw.woff2') format('woff2');
    unicode-range: U+0020-002F, U+003A-007E;
}

/* --- Athiti Numbers --- */

@font-face {
    font-family: 'Athiti-Numbers';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/athiti/pe0sMISdLIZIv1wAoDBCBfe_Kdxicw.woff2') format('woff2');
    unicode-range: U+0030-0039; /* digits 0-9 */
}

@font-face {
    font-family: 'Athiti-Numbers';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/athiti/pe0vMISdLIZIv1wICxJXKNWyAw.woff2') format('woff2');
    unicode-range: U+0030-0039;
}

@font-face {
    font-family: 'Athiti-Numbers';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/athiti/pe0sMISdLIZIv1wA-DFCBfe_Kdxicw.woff2') format('woff2');
    unicode-range: U+0030-0039;
}

@font-face {
    font-family: 'Athiti-Numbers';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/athiti/pe0sMISdLIZIv1wA1DZCBfe_Kdxicw.woff2') format('woff2');
    unicode-range: U+0030-0039;
}

/* --- Vazirmatn Persian Letters --- */

@font-face {
    font-family: 'Vazirmatn-Persian';
    src: url('../fonts/vazirmatn/Vazirmatn-FD-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF;
}

@font-face {
    font-family: 'Vazirmatn-Persian';
    src: url('../fonts/vazirmatn/Vazirmatn-FD-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF;
}

@font-face {
    font-family: 'Vazirmatn-Persian';
    src: url('../fonts/vazirmatn/Vazirmatn-FD-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF;
}

@font-face {
    font-family: 'Vazirmatn-Persian';
    src: url('../fonts/vazirmatn/Vazirmatn-FD-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF;
}

@font-face {
    font-family: 'Vazirmatn-Persian';
    src: url('../fonts/vazirmatn/Vazirmatn-FD-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF;
}

@font-face {
    font-family: 'Vazirmatn-Persian';
    src: url('../fonts/vazirmatn/Vazirmatn-FD-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF;
}

@font-face {
    font-family: 'Vazirmatn-Persian';
    src: url('../fonts/vazirmatn/Vazirmatn-FD-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF;
}

@font-face {
    font-family: 'Vazirmatn-Persian';
    src: url('../fonts/vazirmatn/Vazirmatn-FD-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF;
}

@font-face {
    font-family: 'Vazirmatn-Persian';
    src: url('../fonts/vazirmatn/Vazirmatn-FD-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF;
}

/* --- Vazirmatn Numbers (Persian/Arabic digits) --- */

@font-face {
    font-family: 'Vazirmatn-Numbers';
    src: url('../fonts/vazirmatn/Vazirmatn-FD-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0030-0039, U+06F0-06F9;
}

@font-face {
    font-family: 'Vazirmatn-Numbers';
    src: url('../fonts/vazirmatn/Vazirmatn-FD-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0030-0039, U+06F0-06F9;
}

@font-face {
    font-family: 'Vazirmatn-Numbers';
    src: url('../fonts/vazirmatn/Vazirmatn-FD-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0030-0039, U+06F0-06F9;
}

@font-face {
    font-family: 'Vazirmatn-Numbers';
    src: url('../fonts/vazirmatn/Vazirmatn-FD-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0030-0039, U+06F0-06F9;
}

@font-face {
    font-family: 'Vazirmatn-Numbers';
    src: url('../fonts/vazirmatn/Vazirmatn-FD-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0030-0039, U+06F0-06F9;
}

@font-face {
    font-family: 'Vazirmatn-Numbers';
    src: url('../fonts/vazirmatn/Vazirmatn-FD-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0030-0039, U+06F0-06F9;
}

@font-face {
    font-family: 'Vazirmatn-Numbers';
    src: url('../fonts/vazirmatn/Vazirmatn-FD-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0030-0039, U+06F0-06F9;
}

@font-face {
    font-family: 'Vazirmatn-Numbers';
    src: url('../fonts/vazirmatn/Vazirmatn-FD-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0030-0039, U+06F0-06F9;
}

@font-face {
    font-family: 'Vazirmatn-Numbers';
    src: url('../fonts/vazirmatn/Vazirmatn-FD-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0030-0039, U+06F0-06F9;
}

html[dir="ltr"] body {
  font-family: 'Athiti-Latin', 'Athiti-Numbers', 'Vazirmatn-Persian', sans-serif;
}

html[dir="rtl"] body {
  font-family: 'Vazirmatn-Persian',  'Vazirmatn-Numbers', 'Athiti-Latin', sans-serif;
}

html, body {
    /* overflow-x: hidden;  */
    width: 100%;
    min-width: 400px;
}

/* Ensure body does not overflow */
body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    background-color: var(--color1);
    color: var(--color2);
    border-left: 1px solid var(--color39);
    border-right: 1px solid var(--color39);

    width: 100%;
    min-width: 400px; /* Ensures it does not shrink below this */
    box-sizing: border-box;
}

input, textarea, select, button {
    font-family: inherit;
}

a {
    color: #6a90ff;
    text-decoration: none;
}

a:hover {
    color: #4a6fdc; /* optional: darker color on hover */
    text-decoration: underline; /* optional hover effect */
}

.preloader, .preloader-ar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--color7);
    z-index: 9999;
}

.preloader-ar {
    font-size: 19px;
}

/* Ensure main content does not cause overflow */
.main {
    min-width: 400px;
    width: 100%;
    max-width: var(--maxWidth); /* Ensure it respects the max width */
    box-sizing: border-box; /* Prevents width overflow */
    flex-grow: 1;

    border-left: 1px solid var(--color39);
    border-right: 1px solid var(--color39);
    background-color: var(--color1);

    background-image: url('/static/images/bg_s.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.chat-container, .chat-container-ar {

    /* background-image: url('/static/images/bg_chat.png'); */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;


    transition: opacity 0.5s ease-in-out;
}

/* Sticky container for search & tabs */
.search-sticky-container {
    position: sticky;
    top: 0;
    background: var(--color1);
    z-index: 1000;
    border-bottom: 1px solid var(--color8);
}

.website-name {
    flex: 1; /* Take up as much space as possible */
    text-align: center; /* Center the text */
    font-size: 20px; /* Adjust size as needed */
    font-weight: bold; /* Make text bold */
    letter-spacing: 1px; /* Add letter spacing */
    text-transform: uppercase; /* Make all text uppercase */
    
    /* Gradient Text Styling */
    background: linear-gradient(90deg, #CF6978, #6FBAFB); /* Define gradient colors */
    background-size: 200%; /* Increase background size to create animation effect */
    background-clip: text;
    -webkit-background-clip: text; /* Safari/Chrome */
    color: transparent; /* Set text color to transparent to show gradient */
    
    /* Animation */
    animation: gradient-animation 12s ease-in-out infinite; /* Animation definition */
}

/* Ensure all elements respect their containers */
* {
    box-sizing: border-box; /* Ensures padding & border do not increase element width */
    max-width: 100%; /* Prevents elements from exceeding the viewport width */
}

/* Search bar container with back button */
.search-container {
    display: flex;
    align-items: center;
    padding: 10px;
    background: var(--color1);
    /* border-bottom: 1px solid #ddd; */
}

#searchBar {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: calc(100% - 10px);
    box-sizing: border-box;
    margin-left: 10px;
    margin-right: 10px;
}

/* Tabs */
.search-tabs {
    display: flex;
    /* justify-content: space-around;
    padding: 10px 0;
    background: white; */
}

.search-tab {
    padding: 10px;
    cursor: pointer;
    font-size: 19px;
}

.search-tab.active {
    font-weight: bold;
    position: relative;
}

.search-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #CF697890, #6FBAFB90);
}

.search-tab-ar {
    padding: 10px;
    cursor: pointer;
    font-size: 15px;
}

.search-tab-ar.active {
    font-weight: bold;
    position: relative;
}

.search-tab-ar.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #CF697890, #6FBAFB90);
}

#search-results {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    min-height: 300px;
}

#search-results li {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--color8);
    cursor: pointer;
    gap: 10px;
}

#search-results li:hover {
    background: #f1f1f1;
}

.result-image {
    left: 43px;
    top: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #cccccc;
    object-fit: contain; 
    object-position: center; 
    background-color: #f0f0f0; 
}

.result-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - 60px); /* Ensures the text area takes full width minus 60px */
}

.headline1, .headline2, .headline1-ar, .headline2-ar {
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;  /* Ensures text stays on one line */
    overflow: hidden;      /* Hides overflow content */
    text-overflow: ellipsis; /* Adds "..." for overflow */
    max-width: 100%;       /* Ensures it doesn't exceed the parent container */
}

.headline1, .headline1-ar {
    color: var(--color3);
}

.headline2, .headline2-ar {
    font-size: 14px;
    color: var(--color4);
    line-height: 1.1;
    font-weight: 400;
}

.headline1-ar {
    font-size: 13px;
}

.headline2-ar {
    font-size: 11px;
}


.header-icon-back {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -15px; /* 5px spacing between back and settings */
    margin-right: 3px;
}

.header-icon-back img {
    width: 21px;
    height: 21px;
    object-fit: contain;
    filter: var(--svg-filter);
    width: 15px;
    height: 15px;
    margin-left: 15px;
}

/* Footer */
.footer {
    position: fixed;
    display: flex;
    justify-content: space-around;
    align-items: center;
    bottom: -37px;
    width:100%;
    max-width: var(--maxWidth); /* Match the main width */
    min-width: 400px;
    padding: 0;
    height: 130px;
    background-image: var(--footer-link);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    box-sizing: border-box;
    margin-left: -1px;
    /* border-left: 1px solid rgb(229, 229, 229); */
    /* border-right: 1px solid rgb(235, 235, 235); */
}

.footer-icon {
    text-align: center; /* Center the text or icons within each .footer-icon container */
    margin-bottom: 9px; /* Optional: Adds horizontal spacing between icons */
}

.footer-icon.active {
    text-align: center; /* Center the text or icons within each .footer-icon container */
    margin-bottom: 9px; /* Optional: Adds horizontal spacing between icons */
    filter: drop-shadow(0px 0px 7px var(--color17));
}

.footer-icon.active img {
    filter: var(--svg-filter2);
}

.footer-icon span {
    display: block;
    font-size: 10px;
}

.chatai-icon {
    position: relative; /* Needed for pseudo-element positioning */
    border-radius: 50%;
    width: 63px;
    height: 63px;
    margin-bottom: 35px;
    margin-left: -3px;
    overflow: hidden; /* Ensure the shine stays inside the circle */
}

html[dir="rtl"] .chatai-icon {
    margin-left: 6px;
}

.prev-page {
    transform: rotate(0deg); 
}

.prev-page-ar {
    transform: rotate(180deg); 
}

#welcome-text {
  position: fixed;         /* stay centered even if page scrolls */
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 19px;
  font-weight: bold;
  text-align: center;
}

.hidden {
  display: none;           /* class to hide it */
}

.chat-wrapper {
    position: relative;
    width: 100%;
    height: calc(100dvh - 275px);
}

#chat-history {
    width: 100%;
    height: 100%; /* fill wrapper height */
    overflow-y: auto;
    /* padding: 10px; */
    box-sizing: border-box;
    position: relative;

    /* real fade using mask */
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent,
        black 20px,
        black calc(100% - 20px),
        transparent
    );
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-image: linear-gradient(
        to bottom,
        transparent,
        black 20px,
        black calc(100% - 20px),
        transparent
    );
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
}



/* Bot message: auto height based on content */
.bot-msg {
    display: block;
    border-radius: 10px;
    margin: 0 0 20px 20px; /* left margin, bottom margin */
    padding: 10px;
    width: 85%;
    margin-right: auto; /* stick left */
    font-size: 12px;
    resize: none;
    overflow-y: auto; /* scroll if exceeds 4 lines */
    color:var(--color9);
}

/* User message: max 4 lines, scroll if more */
.user-msg {
    display: block;
    border-radius: 10px;
    margin: 0 20px 20px 0; /* right margin, bottom margin */
    padding: 10px;
    width: 85%;
    margin-left: auto; /* stick right */
    font-size: 12px;
    resize: none;
    max-height: calc(1.2em * 4 + 20px); /* 4 lines + padding */
    overflow-y: auto; /* scroll if exceeds 4 lines */
    color:var(--color9);
    background: var(--color10);
    border: 1px solid var(--color11);
}

/* Message input area */
#input-area {
    position: sticky;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0px 20px 70px 20px;
    box-sizing: border-box;
}

#chat-user-input {
    flex: 1;
    margin-right: 10px;
    padding: 10px;
    border-radius: 10px;
    resize: none;
    font-size: 12px;
    text-align: right;
    direction: rtl;
    height: 77px;
    color:var(--color9);
    background: var(--color14);
    border: 1px solid var(--color11);
}

/* #send-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #007bff;
    color: white;
    cursor: pointer;
    transform: scaleX(-1);
} */

#send-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

#send-btn img {
    width: 30px;
    height: 30px;
    transition: transform 0.15s ease;
}

/* Animation class */
.send-animate {
    transform: scale(1.1);
}

.resend-btn {
    display: block;
    margin-left: auto;
    margin-right: 20px;
    margin-top: -10px;
    margin-bottom: 20px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.footer-ai {
    position: fixed;
    display: flex;
    justify-content: space-around;
    align-items: center;
    bottom: 35px;
    width:100%;
    max-width: var(--maxWidth); /* Match the main width */
    min-width: 400px;
    padding: 5;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    box-sizing: border-box;
    /* border-left: 1px solid rgb(229, 229, 229); */
    /* border-right: 1px solid rgb(235, 235, 235); */
}

.chatai-sticky-container {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    padding: 10px 15px 5px 20px;;
    z-index: 1000;
}

.blink {
  animation: blinkText 1s infinite;
}

@keyframes blinkText {
  0%   { color: rgb(133, 133, 133); }
  50%  { color: rgba(133, 133, 133, 0.284); }
  100% { color: rgb(133, 133, 133); }
}







.breaking-invests {
    box-sizing: content-box;
    max-width: none;
    display: flex;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 3px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: auto; /* Enable manual scrolling */
    white-space: nowrap;
    margin-top: 5px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
    margin-left: -2px;
    margin-right: -2px;

}

/* Hide scrollbar for WebKit browsers */
.breaking-invests::-webkit-scrollbar {
    display: none;
}

.breaking-invests-item {
    box-sizing: content-box;
    max-width: none;
    display: inline-block;
    padding: 0 15px;
    font-size: 16px;
    color: #333;
}

/* .security-link {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    background-color: var(--color24);
    border-radius: 12px;
    line-height: 1;
    border: 1px solid var(--color15);
} */

.security-link {
    box-sizing: content-box;
    max-width: none;
    text-decoration: none;      /* Remove underline */
    color: inherit;             /* Inherit text color from parent */
    display: inline-block;      /* Keep inline-block for layout */
}

.security-link:hover {
    text-decoration: none;      /* No underline on hover */
}


.security-link > br {
  display: none;
}

.security-link > span:first-child {
    grid-column: 1 / -1;
    /* display: block; */
    margin-bottom: 8px;
}

@media (min-width: 620px) {
  .security-link {
    grid-template-columns: repeat(2, 1fr);
  }
}


.security-symbol,
.security-symbol-ar {
    box-sizing: content-box;
    max-width: none;
    font-weight: bold;
    margin-left: 5px;
}

.security-symbol-ar {
    font-size: 13px;
    margin-right: 5px;
}

.price-currency {
    box-sizing: content-box;
    max-width: none;
    font-size: 16px;
    font-weight: bold;
    line-height: 0.8;
    margin-top: 12px;
    margin-left: 1px; /* Controls horizontal spacing between price and currency */

    color: var(--hyperlink-hover);
}

.price-currency {
    font-weight: normal;
    margin-right: 5px;
}

.price-currency-ar {
    font-weight: normal;
    margin-left: 5px;
    margin-right: 3px;
    font-size: 12px;
}

.label-long, .label-long-ar {
    box-sizing: content-box;
    max-width: none;
    font-weight: bold;
    color: #2EBD85;
}

.label-long-ar {
    font-size: 13px;
    margin-right: 3px;
}

.price-currency-ar {
    box-sizing: content-box;
    max-width: none;
    font-weight: normal;
    margin-left: 5px;
    margin-right: 3px;
    font-size: 12px;
}

.security-symbol,
.security-symbol-ar {
    box-sizing: content-box;
    max-width: none;
    font-weight: bold;
    margin-left: 5px;
}

.security-symbol-ar {
    box-sizing: content-box;
    max-width: none;
    font-size: 13px;
    margin-right: 5px;
}

.invests-ticker {
    box-sizing: content-box;
    max-width: none;
    display: inline-block;
    white-space: nowrap;
    animation: scrollLeft 130s linear infinite;
    padding-left: 100%;
}

.invests-ticker-ar {
    box-sizing: content-box;
    max-width: none;
    display: inline-block;
    white-space: nowrap;
    animation: scrollRight 120s linear infinite;
    padding-right: 100%;
}

.invests-ticker-biz {
    box-sizing: content-box;
    max-width: none;
    display: inline-block;
    white-space: nowrap;
    animation: scrollLeft 30s linear infinite;
    padding-left: 100%;
}

.invests-ticker-biz-ar {
    box-sizing: content-box;
    max-width: none;
    display: inline-block;
    white-space: nowrap;
    animation: scrollRight 80s linear infinite;
    padding-right: 50%;
}

.invests-ticker-top10 {
    box-sizing: content-box;
    max-width: none;
    display: inline-block;
    white-space: nowrap;
    animation: scrollLeft 35s linear infinite;
    padding-left: 100%;
}

.invests-ticker-top10-ar {
    box-sizing: content-box;
    max-width: none;
    display: inline-block;
    white-space: nowrap;
    animation: scrollRight 80s linear infinite;
    padding-right: 50%;
}

.invests-ticker img {
    box-sizing: content-box;
    max-width: none;
    height: 13px;
    width: auto;
    margin-bottom: -1.5px;
}

.invests-ticker:hover {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

.section-title-ai {
    box-sizing: content-box;
    max-width: none;
    margin-left: 30px;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(90deg, #CF6978, #6FBAFB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title-ai-ar {
    box-sizing: content-box;
    max-width: none;
    margin-right: 30px;
    font-size: 14px;
    font-weight: bold;
    background: linear-gradient(90deg, #CF6978, #6FBAFB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.label-long, .label-long-ar {
    box-sizing: content-box;
    max-width: none;
    font-weight: bold;
    color: #2EBD85;
}

.label-long-ar {
    font-size: 13px;
    margin-right: 3px;
}

.label-short, .label-short-ar {
    box-sizing: content-box;
    max-width: none;
    font-weight: bold;
    color: #fd5e55;
}

.label-short-ar {
    font-size: 13px;
    margin-right: 3px;
}


/* Container inside main */
.break-container,
.break-container-ar {
    box-sizing: content-box;
    max-width: none;
    /* padding: 15px; */
    width: 100%; /* Make container fill the main area */
    box-sizing: border-box;
}

.break-container h1 {
    /* font-size: 2em; */
    font-size: 27px;
}

.break-container-ar h1 {
    font-size: 1.5em;
}

.break-container h2,
.break-container-ar h2 {
    display: block;
    font-size: 20px;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.break-container-ar h2 {
    font-size: 17px;
}

.bot-msg, .user-msg {
    position: relative;
}

/* ✅ Copy button */
.copy-btn {
    position: absolute;
    bottom: 0;
    left: 10px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.1s ease;
    padding: 0;
}

.copy-btn .copy-icon {
    width: 18px;
    height: 18px;
    pointer-events: none;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.2s ease;
}

.bot-msg:hover .copy-btn {
    opacity: 0.9;
}

.bot-msg h1 {
    font-size: 22px;
    line-height: 1.8;
}

.copy-btn:hover .copy-icon {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* ✅ Visual feedback states */
.copy-btn.copied .copy-icon {
    filter: hue-rotate(120deg) brightness(1.3);
}

.copy-btn.error .copy-icon {
    filter: hue-rotate(-40deg) brightness(1.3);
}