:root {
    color-scheme: light;
    --ui-ink: #17233c;
    --ui-muted: #748198;
    --ui-line: #e6ebf2;
    --ui-surface: #ffffff;
    --ui-page: #f5f7fb;
    --ui-primary: #315be8;
    --ui-primary-dark: #2347c7;
    --ui-green: #15966a;
    --ui-shadow: 0 12px 32px rgba(28, 44, 75, 0.07);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: clip;
    background: var(--ui-page);
    color: var(--ui-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

* {
    box-sizing: border-box;
}

a {
    color: var(--ui-primary);
    text-decoration: none;
    transition: color 160ms ease;
}

a:hover {
    color: var(--ui-primary-dark);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
.btn {
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
}

:focus-visible {
    outline: 3px solid rgba(49, 91, 232, 0.28);
    outline-offset: 2px;
}

.custom-border,
.navbar.custom-border {
    position: sticky;
    z-index: 20;
    top: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px max(20px, calc((100% - 1440px) / 2));
    border: 0;
    border-bottom: 1px solid rgba(230, 235, 242, 0.9);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 18px rgba(28, 44, 75, 0.035);
    backdrop-filter: blur(14px);
}

.custom-border .container-fluid {
    display: flex;
    width: 100%;
    max-width: 1440px;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    padding: 0;
}

.navbar-brand {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.navbar-brand svg {
    display: block;
    width: 136px;
    height: auto;
}

.custom-border form,
.custom-border form .input-group {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
}

.input-search {
    width: min(30vw, 300px);
    min-height: 42px;
    border: 1px solid var(--ui-line);
    border-right: 0;
    border-radius: 12px 0 0 12px;
    background: #f8faff;
    color: var(--ui-ink);
    padding: 9px 14px;
}

.input-search:focus {
    border-color: #b7c5f8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(49, 91, 232, 0.09);
}

.btn-submit-search {
    min-height: 42px;
    border: 1px solid var(--ui-primary);
    border-radius: 0 12px 12px 0 !important;
    background: var(--ui-primary);
    padding: 8px 15px;
}

.Log-reg,
.User-log-profile {
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px !important;
    background: var(--ui-primary);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700 !important;
    margin: 0 0 0 12px !important;
    padding: 9px 17px;
}

.Log-reg:hover,
.User-log-profile:hover {
    background: var(--ui-primary-dark);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(49, 91, 232, 0.22);
}

.Stock {
    width: calc(100% - 40px);
    max-width: 1440px;
    margin: 18px auto 0;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 14px;
    background: var(--ui-surface);
    padding: 13px 18px;
}

.Stock-price {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 28px;
    color: var(--ui-ink);
    font-weight: bold;
    font-size: 14px;
}

.Symbol-name {
    gap: 8px;
    color: var(--ui-muted);
    font-size: 13px;
}

.Main-conteanter-flex {
    display: grid;
    width: calc(100% - 40px);
    max-width: 1440px;
    grid-template-columns: minmax(210px, 0.85fr) minmax(0, 1.7fr) minmax(240px, 0.95fr);
    align-items: start;
    gap: 20px;
    margin: 20px auto 48px;
}

.Conteainer1,
.Conteainer-middle,
.Conteainer3 {
    width: 100%;
    min-width: 0;
    height: auto;
    border: 0;
    overflow: visible;
}

.Conteainer-middle {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.Box-Catagory,
.Stock-details,
.User-Follow-Card,
.User-Follow-Card-main,
.profile-update-section,
.profile-update-section1,
.Post-Tip1,
.Testign_comming {
    border: 1px solid var(--ui-line);
    border-radius: 16px;
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow);
}

.Box-Catagory {
    width: 100%;
    margin: 0 0 16px;
    padding: 0 0 12px;
}

.Catagory-Heading {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--ui-line);
    color: var(--ui-ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 750;
    letter-spacing: 0;
    padding: 16px 18px;
}

.Cat-Tips {
    width: auto;
    align-items: center;
    gap: 8px;
    margin: 0 14px;
    border-bottom: 1px solid #eef1f6;
    padding: 11px 5px;
}

.Cat-Tips:hover {
    border-radius: 9px;
    background: #f5f7ff;
}

.Cat-Iteam,
.Cat-Iteam1 {
    margin: 0;
    color: var(--ui-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
}

.Cat-Iteam1 {
    color: var(--ui-muted);
    font-size: 13px;
}

.Follow-scroll {
    height: auto;
    max-height: 420px;
    overflow-y: auto;
}

.User-Follow-Card {
    width: auto;
    margin: 12px;
    box-shadow: none;
}

.User-Follow-Card-main {
    width: 100%;
    margin: 0;
    padding: 16px 0;
    box-shadow: var(--ui-shadow);
}

.User-Follow-Card:hover,
.User-Follow-Card-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(28, 44, 75, 0.1);
}

.User-Short-profile {
    align-items: center;
    border-color: #eef1f6;
}

.User-img,
.C-user-img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.name-user,
.user-tagname,
.Tips-Type,
.Tips-Contant,
.Tips-Contant1,
.Post-TIME,
.User-name-comment,
.comment-note {
    font-family: inherit;
}

.name-user {
    color: var(--ui-ink);
    font-size: 14px;
}

.user-tagname,
.Post-TIME,
.Tips-Contant1 {
    color: var(--ui-muted);
}

.Follow-Btn,
.Post-Btn,
.Post-Btn1,
.Comment-p {
    border: 0;
    border-radius: 10px;
    background: var(--ui-primary);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
}

.Follow-Btn:hover,
.Post-Btn:hover,
.Post-Btn1:hover,
.Comment-p:hover {
    background: var(--ui-primary-dark);
}

.Post-Tip {
    width: 100%;
    margin: 0;
    border: 1px solid var(--ui-line);
    border-radius: 16px;
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow);
    padding: 18px;
}

.Select-item,
.Select-item1,
.Post-item,
.Post-item1,
.Comment-input,
.Log-Input,
.form-control,
.form-select {
    border: 1px solid #dfe5ef;
    border-radius: 10px;
    background-color: #fff;
    color: var(--ui-ink);
    padding: 11px 13px !important;
    font-family: inherit;
    font-size: 15px;
    text-transform: none;
}

.Post-item,
.Post-item1 {
    min-height: 120px;
    height: auto;
    resize: vertical;
}

.Select-item:focus,
.Select-item1:focus,
.Post-item:focus,
.Post-item1:focus,
.Comment-input:focus,
.Log-Input:focus,
.form-control:focus,
.form-select:focus {
    border-color: #9cb0f7;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(49, 91, 232, 0.1);
}

.Users-post {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.Comments-sec {
    width: 90%;
}

.Comment-input {
    min-height: 42px;
}

.Conteainer3 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.Stock-details {
    width: 100%;
    margin: 0;
    padding: 14px;
}

.Stock-details > * {
    max-width: 100%;
}

.Stock-details iframe,
.Conteainer3 iframe,
.Conteainer3 .tradingview-widget-container,
.Conteainer3 .tradingview-widget-container__widget,
ins.adsbygoogle {
    max-width: 100% !important;
}

iframe {
    max-width: 100%;
}

.tradingview-widget-container111,
.tradingview-widget-container1111,
.Chart-Controler {
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px;
}

.Post-Tip1 {
    width: min(100% - 40px, 980px);
    margin: 28px auto;
    padding: clamp(18px, 4vw, 34px);
}

.profile-update-section,
.profile-update-section1 {
    width: min(100% - 40px, 980px);
    margin: 24px auto;
    padding: clamp(18px, 4vw, 32px);
}

.Testign_comming {
    width: min(100% - 40px, 980px);
    margin: 24px auto;
    color: var(--ui-muted);
    font-family: inherit;
    font-size: 16px;
}

.User-data-section {
    min-height: 100vh;
    height: auto;
    background: var(--ui-surface);
}

.Section-Left {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background-color: #152546;
    background-image: linear-gradient(145deg, rgba(17, 34, 69, 0.83), rgba(32, 73, 146, 0.68)), url("./IMG/Frame-1.png");
    background-position: center;
    background-size: cover;
    padding: clamp(32px, 6vw, 88px);
}

.Con-Details {
    position: relative;
    z-index: 1;
    max-width: 580px;
    margin: 0 auto;
}

.Text-wel {
    color: #bdcdf7;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.Logo-text {
    color: #fff;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 780;
    letter-spacing: -0.045em;
}

.Login-Text {
    max-width: 460px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.8;
}

.Section-Right {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    padding: clamp(24px, 5vw, 72px);
}

.titel-back {
    position: absolute;
    top: 28px;
    right: clamp(24px, 5vw, 72px);
    left: clamp(24px, 5vw, 72px);
    align-items: center;
    gap: 16px;
}

.Back-09 {
    color: var(--ui-muted);
    font-size: 14px;
}

.Login-form,
.Login-form-forgot {
    width: min(100%, 440px);
    margin: 64px auto 20px;
}

.Login {
    color: var(--ui-ink);
    font-family: inherit;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 760;
    letter-spacing: -0.04em;
    margin-bottom: 8px !important;
}

.Login-text {
    margin-bottom: 28px;
    color: var(--ui-muted);
    font-family: inherit;
    font-size: 15px;
}

.Main-form {
    width: 100%;
}

.Sub-item {
    margin: 18px 0;
}

.Label-text {
    color: #34425b;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
}

.Log-Input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px !important;
}

.Remember {
    gap: 8px;
    color: var(--ui-muted);
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 0;
}

.Remember input {
    accent-color: var(--ui-primary);
}

.submit-btn {
    display: block;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 11px;
    background: var(--ui-primary);
    box-shadow: 0 8px 18px rgba(49, 91, 232, 0.2);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 750;
    padding: 12px 18px;
}

.submit-btn:hover {
    background: var(--ui-primary-dark);
}

.Forgot {
    color: var(--ui-primary);
    font-family: inherit;
}

.Sub-item-Forgot {
    border: 1px solid #d8f1e7;
    border-radius: 12px;
    background: #f0fbf6;
    padding: 14px;
}

.Fin-verifiva {
    margin: 0;
    color: #137b58;
    font-family: inherit;
    font-size: 14px;
}

.invalid-feedback {
    font-size: 13px;
}

.alert {
    border-radius: 12px;
}

.Chart-Controler {
    margin: 24px auto;
}

@media (max-width: 1100px) {
    .Main-conteanter-flex {
        grid-template-columns: minmax(190px, 0.75fr) minmax(0, 1.65fr);
    }

    .Conteainer3 {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .User-Follow-Card-main {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .custom-border {
        padding: 8px 14px;
    }

    .custom-border .container-fluid {
        min-height: 48px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .navbar-brand svg {
        width: 108px;
    }

    .custom-border form {
        flex: 1 1 100%;
        order: 3;
    }

    .custom-border form .input-search {
        width: 100%;
    }

    .Log-reg,
    .User-log-profile {
        min-height: 38px;
        margin-left: auto !important;
        padding: 7px 12px;
    }

    .Stock {
        width: calc(100% - 28px);
        margin-top: 12px;
        padding: 11px 13px;
    }

    .Stock-price {
        gap: 8px 16px;
        font-size: 13px;
    }

    .Main-conteanter-flex {
        width: calc(100% - 28px);
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin-top: 14px;
    }

    .Conteainer1,
    .Conteainer-middle,
    .Conteainer3 {
        grid-column: auto;
    }

    .Conteainer1 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .Box-Catagory {
        margin-bottom: 0;
    }

    .Conteainer3 {
        display: flex;
    }

    .Users-post {
        grid-template-columns: minmax(0, 1fr);
    }

    .User-Follow-Card-main {
        padding: 12px 0;
    }

    .User-data-section {
        display: block;
    }

    .Section-Left {
        display: none;
    }

    .Section-Right {
        min-height: 100vh;
        padding: 78px 22px 30px;
    }

    .titel-back {
        top: 20px;
        right: 22px;
        left: 22px;
    }

    .Login-form,
    .Login-form-forgot {
        width: min(100%, 480px);
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    .Conteainer1 {
        grid-template-columns: minmax(0, 1fr);
    }

    .Stock-price {
        gap: 6px 12px;
        font-size: 12px;
    }

    .Post-Tip,
    .Stock-details {
        padding: 14px;
    }

    .Post-Tip1,
    .profile-update-section,
    .profile-update-section1,
    .Testign_comming {
        width: calc(100% - 28px);
        margin: 14px auto;
    }

    .Back-09 {
        font-size: 12px;
    }

    .Fin-verifiva {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
