/* @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Segoe+UI:wght@400;500;700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --dark-bg: #101010;
    --secondary-bg: #121212;
    --text-primary: #FFFFFF;
    --text-secondary: #A8B5C7;
    --accent-primary: #007BFF;
    --accent-secondary: #00C4CC;
    --border: #222222;
    --error: #FF4D4F;
    --success: #3bab04;
    --warning: #FFC107;
    --highlight: #40C4FF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

.mt-2{
    margin-top: 2rem;
}

.mb-2r{
    margin-bottom: 2rem;
}
.text-green{
    color:green;
}
a {
    text-decoration: none;
    color: white;
}
.box-address{
    width: 70%;
    margin: 50px auto;
    padding: 25px;
    border : 1px solid var(--accent-primary);
    box-shadow : 1px 1px 1px 0px var(--accent-primary);
    border-radius : 5px;
}
.img-address{
    display: block;
    width: 30%;
    height: auto;
    margin: 10px auto;
}
.box-display-address{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}
.display-address{
    color:white;
    font-size: 1rem;
    text-align:center;
}
.icon-copy-address-blockchain{
    margin-left: 10px;
    color: var(--accent-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Navbar Styles */
.navbar {
    width: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 3000;
}

.logo {
    flex: 0 0 10%;

}

.logo img {
    width: 100px;
    margin-top: 5px;
}

.menu {
    /* flex: 0 0 70%; */
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    transition: .3s all;
}


.menu-icons {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
    width: 100%;
}

.header.mobile {
    display: none !important;
}

.menu-item {
    cursor: pointer;
    padding: 10px 10px;
    list-style-type: none;
    transition: .3s all;
    border-radius: 10px;
    margin-bottom: 10px;
}

.menu-item.active {
    color: var(--accent-primary);
    font-size: 16px;
    font-weight: bold;
}

.menu-item.active:hover {
    background-color: var(--accent-primary);
    color: white;
}

.menu-item:hover {
    background-color: var(--accent-primary);
}

.menu-item-nav {
    position: relative;
}

.menu-item-nav>a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 500;
    padding: 10px 12px;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-item-nav>a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.menu-item-nav.active>a {
    color: var(--accent-primary);
    font-weight: bold;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary-bg);
    border-radius: 8px;
    flex-direction: column;
    width: 300px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.menu-item-nav:hover .dropdown {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown a {
    padding: 10px 18px;
    font-size: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    /* transition: all 0.3s ease; */
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown a:hover {
    padding-left: 22px;
}

.dropdown a:last-child {
    border-bottom: none;
}

i {
    cursor: pointer;
}

.dropdown a i {
    font-size: 10px;
}

.right {
    /* flex: 0 0 20%; */
    display: flex;
    align-items: center;
    gap: 20px;
}

.search {
    position: relative;
    /* flex: 0 0 150px; */
    width: 100%;
}

.search input {
    width: 100%;
    padding: 4px 15px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--secondary-bg);
    color: var(--text-secondary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s;
}

.search input:focus {
    border-color: var(--accent-primary);
    background: #232a3d;
}

.icon-circle,
.user-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.icon-circle:hover,
.user-avatar:hover {
    transform: scale(1.1);
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.dropdown-box {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--secondary-bg);
    border-radius: 8px;
    width: 280px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
    flex-direction: column;
    overflow: hidden;
    z-index: 2000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.dropdown-box.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-header {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    background: #111;
}

.dropdown-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
}

.dropdown-header .balance,
.dropdown-header .email,
.dropdown-header .uid {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-group {
    display: flex;
    gap: 10px;
    padding: 12px 15px;
}

.btn-group button {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--secondary-bg);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-group button:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.dropdown-box a {
    padding: 12px 18px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-box a:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
    padding-left: 22px;
}

.dropdown-box .logout {
    text-align: center;
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    cursor: pointer;
    color: var(--text-secondary);
    transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-box .logout:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
    transform: scale(0.8) translateY(50px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-primary);
}

.modal-close {
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.modal-body {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body ul {
    list-style: none;
    padding: 0;
}

.modal-body li {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.modal-body li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-btn {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-primary);
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.5);
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
}

.open-modal-btn {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-primary);
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    margin-top: 0.75rem;
}

.open-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.5);
}

@keyframes modalIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    100% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
}

.modal.show .modal-content {
    animation: modalIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal:not(.show) .modal-content {
    animation: modalOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}


/* Footer Styles */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    padding: 40px 20px;
    border-top: 1px solid var(--border);
    /* margin-top: 20px; */
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    /* border: 2px solid var(--border); */
    padding-bottom: 20px;
    border-right: 2px solid var(--border);
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-primary);
}

.footer-column ul li a i {
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.footer-copyright p {
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-copyright a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--accent-primary);
}


/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    transform: translateY(-30px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
}

.popup.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.popup-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-primary);
}

.popup-close {
    cursor: pointer;
    font-size: 20px;
    color: var(--text-secondary);
    transition: color 0.2s ease, transform 0.2s ease;
}

.popup-close:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.popup-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
}

.popup-body strong {
    color: var(--accent-primary);
}

.popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.popup-btn {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-primary);
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.5);
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
}

.open-popup-btn {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-primary);
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.open-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.5);
}

@keyframes popupIn {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes popupOut {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-30px);
        opacity: 0;
    }
}

.popup.show {
    animation: popupIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.popup:not(.show) {
    animation: popupOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Main Content */
.main-content {
    text-align: center;
    padding: 60px 20px;
}

.main-content h1 {
    font-size: 48px;
    margin: 10px 0;
    color: var(--accent-primary);
}

.main-content p {
    font-size: 18px;
    color: var(--text-secondary);
}

.trade-btn {
    background: var(--accent-primary);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.trade-btn:hover {
    background: var(--highlight);
    transform: translateY(-3px);
}

.container {
    /* background-color: var(--secondary-bg); */
    padding: 40px 40px 0px;
    border-radius: 8px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); */
    margin: 20px;
}

.dashboard-container {
    display: flex;
    flex-direction: row;
    padding: 30px;
    border-radius: 16px;
}

.container.ticket {
    max-width: 600px;
    background: var(--secondary-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.setting-item-container {
    display: flex;
    padding: 10px 20px;
    flex-direction: column;
    border-bottom: 2px solid var(--border);
}

.setting-item-container h2 {
    font-size: 1.5rem;
}

.grid-blog {
    display: grid;

    /* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
    gap: 20px;
    padding: 20px;

}

.container.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--dark-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    width: 700px;
    height: 500px;
}

.kyc-container {
    background: linear-gradient(135deg, #1e1f2e, #2a2d3d);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.kyc-container:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.kyc-container.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 50px;
}

.asside {
    width: 20%;
    padding: 10px 30px 10px 10px;
}

.asside ul {
    margin-top: 20px;

}

.asside ul a {
    text-decoration: none;
    color: white;
}

.account-item {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 1.3rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--border);
    transition: .3s all;
}

.account-item:hover {
    background: var(--secondary-bg);
}

.card p {
    /* font-size: 1.8rem; */
    margin-top: 10px;
}

.panel {
    width: 80%;
}


.card {
    background: linear-gradient(135deg, #1e1f2e, #2a2d3d);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.2);
    margin: 10px;
}

.card .two-sides {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-actions hr {
    outline: none;
    border: 1px solid var(--accent-primary);
}

.card-title {
    display: flex;
    flex-direction: column;
}

.card-title p {
    font-size: .8rem;
}

.card-actions {
    display: flex;
    flex-direction: row;
    gap: 5px;

}

.card.transparent {
    background: transparent !important;
    /* border: 2px solid var(--border) !important; */
}

.card:hover {
    border-color: var(--accent-primary);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #2a2a2a;
}

.pagination li{
    background-color: #2a2a2a;
    list-style-type: none;
    color: #a8b5c7;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.pagination button:hover {
    background-color: #007bff;
    color: #ffffff;
    transform: translateY(-2px);
}

.pagination button:disabled {
    background-color: #3c3c3c;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.pagination button.active {
    background-color: #00c4cc;
    color: #ffffff;
    font-weight: bold;
}

.pagination span {
    color: #a8b5c7;
    margin: 0 15px;
    font-size: 14px;
}

.wallet-container,
.table-container,
.chat-container,
.messages-container,
.report-container,
.rating-container,
.start-chat-container,
.order-container,
.message-container {
    background-color: #1e1e1e;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0px;
}

.chat-container,
.chat-box {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--dark-bg);
    padding: 16px;
}

/* Form Elements */
.form-group,
.input-group {
    margin-bottom: 20px;
    position: relative;
    width: 100%;
}

.form-section {
    border-radius: 20px;
    height: 90%;
    padding: 20px;
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #0e121d, #0d0f18);
}

.form-section h2 {
    margin-bottom: 15px;
    font-size: 22px;
    color: var(--text-primary);
}

label {
    display: inline;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.checkbox-label input {
    margin-right: 8px;
}

.custom-input,
.code-input,
.input-group input,
.chat-input input,
input,
select,
textarea {
    width: 100%;
    background-color: var(--dark-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.3s;
}

input[type="file"] {
    padding: 0;
}

.code-input {
    width: 40px;
    height: 40px;
    padding: 10px;
    background: #1a1f2e;
    font-size: 18px;
    text-align: center;
    border: none;
}

.custom-input:focus,
.code-input:focus,
.input-group input:focus,
.chat-input input:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-primary);
    background: #232a3d;
    box-shadow: 0 0 0 2px var(--accent-primary), 0 0 10px rgba(0, 123, 255, 0.3);
}

.custom-input::placeholder,
.input-group input::placeholder,
.chat-input input::placeholder {
    color: #555;
}

.custom-input.error {
    border-color: var(--error);
}

.error-message {
    color: var(--error);
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.code-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.input-group .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    font-size: 12px;
}

.checkbox {
    font-size: 11px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.checkbox input {
    margin-right: 8px;
    margin-top: 2px;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    justify-content: center;
}

.tab {
    /* padding: 10px; */
    background: #1a1f2e;
    border: none;
    height: auto;
    margin: 10px 0px;
    padding: 10px 15px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s, transform 0.2s;
    text-align: center;
}

.tab:hover {
    transform: scale(1.1);
}

.tab.active {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.tab:first-child {
    border-right: 1px solid #0d0f18;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.tab:nth-child(2) {
    border-right: 1px solid #0d0f18;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* Select Dropdown */
.custom-select,
.id-photo select {
    position: relative;
    width: 200px;
    background-color: var(--dark-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.select-container {
    width: 100%;

}

.custom-select {
    width: 100%;

}

.custom-select .selected {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-select img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.select-options {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background-color: #1e1e1e;
    border: 1px solid var(--border);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.select-options div {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    height: 50px;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.select-options div img {
    height: 30px;
}

.select-options div:hover,
.select-options div:focus {
    background-color: #2a2a2a;
}

/* security */

.security-level {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 10px;
}

.profile-picture {
    border-radius: 100%;
    width: 50px;
    height: 50px;
    background-color: white;
}

.security-level span {
    margin-right: 10px;
}

.progress {
    /* flex-grow: 1; */
    height: 10px;
    width: 500px;
    border-radius: 100%;
    background: #333;
    margin-top: 20px;
}

.progress .low {
    width: 33%;
    background: var(--error);
    height: 100%;
    box-shadow: 0px 0px 5px 2px var(--error);
}

.progress .medium {
    width: 66%;
    background: var(--accent-secondary);
    height: 100%;
    box-shadow: 0px 0px 5px 2px var(--accent-secondary);
}


.progress .high {
    width: 100%;
    background: var(--success);
    height: 100%;
    border-top-right-radius: 100%;
    border-bottom-right-radius: 100%;
    box-shadow: 0px 0px 5px 2px var(--success);
}

.verification-methods .card {
    margin-bottom: 10px;
}

.verification-methods .card-title p {
    color: var(--success);
}

.verification-methods .btn {
    background: var(--success);
}

/* Buttons */

.btn {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-primary);
    /* padding: 10px; */
    padding: 2px 10px !important;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    border: none;
    gap: 5px;
    transition: .3s all;
}


.btn.btn-2 {
    height: 20px;
    font-size: .8rem;
    padding: 2px 10px !important;
}

.btn.btn-3 {
    height: 30px;
    width: auto;
    font-size: 1rem;
    padding: 2px 14px !important;
}

.sell-btn,
.report-btn,
.btn-primary,
.btn-secondary,
.chat-input button {
    height: 40px;
    width: auto;
    padding: 0px 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    flex: none;
    box-shadow: none;
    transition: background-color 0.2s ease, transform 0.1s ease, opacity 0.3s, box-shadow 0.3s;
}

.btn-primary {
    display: flex;
    align-items: center;
    margin: 10px 5px;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    transition: .3s all;
    box-shadow: none !important;
}

.sell-btn {
    background-color: var(--accent-primary);
    color: var(--text-primary);
    /* font-family: "Noto Sans JP", sans-serif; */
    /* margin-top: 10px; */
}
.report-btn{
    padding: 10px;
}

.successful-btn {
    background-color: var(--success);
    color: white;
    width: 100%;

}

.sell-btn:hover:not(:disabled) {
    background-color: var(--accent-secondary);
    transform: translateY(-1px);
}

.sell-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.report-btn {
    background-color: var(--error);
    color: var(--text-primary);
    margin: 10px 0;
    width: 100%;
    display: inline-block;
    text-align: center;
}

.report-btn:hover:not(:disabled) {
    background-color: #e60000;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-primary);
    padding: 14px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    text-align: center;
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    transform: scale(1.05);
}

.btn:hover,
.chat-input button:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.5);
}

.btn-secondary {
    background: #1f2937;
    border: 1px solid var(--border);
    padding: 12px 25px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 15px;
}

.btn-secondary:hover {
    background: #374151;
    color: var(--text-primary);
}

.btn-view {
    padding: 10px;
    background-color: var(--accent-primary);
    color: var(--text-primary);
    border-radius: 6px;
    outline: none;
    border: none;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s ease;
    width: 100%;
    display: inline-block;
    text-align: center;
}
.btn-view-m {
    padding: 10px;
    background-color: var(--accent-primary);
    color: var(--text-primary);
    border-radius: 6px;
    outline: none;
    border: none;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s ease;
    width: 50%;
    display: inline-block;
    text-align: center;
}

.btn-view:hover {
    background-color: var(--accent-secondary);
}

.btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.recommended {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    color: var(--text-primary);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.chat-input button {
    background: var(--accent-primary);
    padding: 12px 20px;
    width: auto;
    color: var(--text-primary);
}

.chat-input button:hover {
    background: var(--accent-secondary);
}

/* Order Status and Steps */
.order-status {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.order-steps,
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 10px;
    background-color: #1e1e1e;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.progress-step {
    text-align: center;
    flex: 1;
    color: var(--text-secondary);
    font-size: 14px;
    position: relative;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--border);
    z-index: -1;
}

.progress-step:first-child::before {
    left: 50%;
}

.progress-step:last-child::before {
    right: 50%;
}

.progress-circle {
    background-color: var(--border);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: bolder;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.progress-step.active .progress-circle {
    background-color: var(--accent-primary);
    color: var(--text-primary);
}

.progress-step.completed .progress-circle {
    background-color: var(--success);
}

.progress-step.completed::before {
    background-color: var(--success);
}

/* Receipt and Confirm Boxes */
.receipt-box,
.confirm-box,
.upload-box {
    margin-top: 20px;
    padding: 16px;
    background-color: #1e1e1e;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.receipt-box img {
    max-width: 100%;
    border-radius: 8px;
    cursor: pointer;
}
.receipt-box p{
    margin-bottom: 20px;
}

/* Table Styles */
.table-container {
    overflow-x: auto;

}

.custom-table,
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1e1e1e;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.custom-table th,
.custom-table td,
table th,
table td {
    padding: 12px 14px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

td {
    font-weight: 500;

}

.coin-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

td img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

td i {
    margin: 5px;
}

td.green-price {
    color: green;
    font-weight: 600;
}

td.red-price {
    color: red;
    font-weight: 600;
}

.custom-table th,
table th {
    background-color: var(--secondary-bg);
    color: var(--text-secondary);
    font-weight: 500;
}

.custom-table tr:hover {
    background-color: #2a2a2a;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.status-badge.completed {
    background-color: #1a3d00;
    color: var(--success);
}

.status-badge.pending {
    background-color: #3d3000;
    color: var(--warning);
}

.status-badge.canceled {
    background-color: #3d0000;
    color: var(--error);
}

/* Order Card */
.order-card {
    display: none;
    background-color: #1e1e1e;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    margin-top: 14px;
}

.order-card p {
    margin: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Header */
.header,
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

nav.header {
    background: var(--dark-bg);
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 3000;
    margin-bottom: 0px;
}

.header h1,
.ticket-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.header a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s;
    white-space: nowrap;
}


/* KYC Specific */
.kyc-container {
    background: linear-gradient(135deg, #1e1f2e, #2a2d3d);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.kyc-container:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.kyc-container.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 50px;
}

/* Requirements Section */
.requirements {
    background-color: #1e1e1e;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 25px;
}

.requirements ul {
    list-style: none;
    padding: 0;
}

.requirements li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-primary);
}

.requirements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* ID Photo Section */
.id-photo {
    margin-top: 30px;
}

.id-photo p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.id-photo .photo-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.id-photo select {
    background: var(--dark-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 14px;
    width: 200px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.id-photo select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
}

/* Photo Requirements */
.photo-requirements {
    background-color: #1e1e1e;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-top: 20px;
}

.photo-requirements h1 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.photo-requirements ul {
    list-style: none;
    padding: 0;
}

.photo-requirements li {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.photo-requirements .desc {
    color: var(--text-primary);
    font-weight: 500;
}

.photo-requirements .info-text {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Status Section */
.id-photo .status {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    margin-bottom: 25px;
}

.id-photo .status div {
    text-align: center;
    flex: 1 1 100px;
    max-width: 120px;
}

.id-photo .status img {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border: 2px solid var(--border);
    border-radius: 6px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.id-photo .status img:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
}

.id-photo .status p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Upload Section */
.id-photo .upload {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.upload .front-id,
.upload .back-id {
    text-align: center;
    flex: 1 1 200px;
    background-color: #1e1e1e;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.upload .front-id:hover,
.upload .back-id:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.upload img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}

.upload p {
    font-size: 14px;
    color: var(--text-primary);
}

/* Review Time Text */
.kyc-container .review-time {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 15px;
    opacity: 0.8;
}

/* FAQ */
.faq {
    max-width: 900px;
    margin: 20px auto;

}

.faq h2 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.faq-item {
    background: #111827;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.faq-question {
    padding: 18px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #1f2937;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: #1f2937;
    padding: 0 18px;
    font-size: 15px;
    color: var(--text-secondary);
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 250px;
    padding: 18px;
}


/* blog */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background-color: var(--secondary-bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {

    box-shadow: 0px 0px 100px 1000px inset black,
        2px 10px 10px 5px rgba(0, 0, 0, .4);
}

.blog-card img {
    width: 100%;
    height: 250px;
    min-height: 250px;
    object-fit: contain;
    padding: 0px 10px;
}

.blog-card-content {
    padding: 0px 20px 15px 20px;
}

.blog-card-content h3 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 10px;
}

.blog-card-content a {
    color: white;
}

.blog-card-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
}

.blog-card-content .info {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 10px;
}

.blog-card-content a {
    /* color: var(--accent-primary); */
    font-size: 14px;
    text-decoration: none;

    margin-top: 20px !important;
}

.blog-header {
    border-bottom: 1px solid var(--border);
    background-color: var(--dark-bg);
}

.blog-header h2 {
    color: var(--text-primary);
    font-size: 24px;
    margin-bottom: 10px;
}

.blog-search {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

.blog-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--secondary-bg);
    color: var(--text-secondary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.blog-search input:focus {
    border-color: var(--accent-primary);
}

.featured-post {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 20px;
}

.featured-post img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}


.featured-post-content span {
    color: var(--text-secondary);
    font-size: 14px;
}

.featured-post-content h3 {
    color: var(--text-primary);
    font-size: 22px;
    margin: 10px 0;
}

.featured-post-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
}

.featured-post-content .date {
    color: var(--text-secondary);
    font-size: 12px;
}

.categories {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    gap: 10px;
    padding: 10px;
    max-width: 100%;
    scrollbar-width: 0px;
}

.categories a {
    flex: 0 0 auto;
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--dark-bg);
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s;
}

.categories::-webkit-scrollbar {
    height: 6px;
}

.categories::-webkit-scrollbar-thumb {
    border-radius: 3px;
}

.categories::-webkit-scrollbar-track {
    background: transparent;
}

.categories a:hover {
    color: var(--accent-primary);
    border: 1px var(--accent-primary) solid;
}

.categories a.active {
    color: var(--accent-primary);
    border: 2px var(--accent-primary) solid;
}


/* article */
.container.article {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px;
    gap: 10px;
}

.article-container {
    width: 80%;
}

.article-sidebar {
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 80px;

    gap: 20px;
}

.item-sidebar-reg {
    background-color: var(--accent-primary);
    color: var(--text-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;

}

.article-sidebar-item {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.likeitem.article-sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.likeitem.article-sidebar-item button {
    background: none;
    border: none;
    cursor: pointer;
}

.sidebar-register a {
    display: block;
    margin-top: 10px;
}

.bullet {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
}

.article-sidebar-item.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    transition: .3s all;
}


.article-container {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 20px;

}

.article-header {
    text-align: center;
    margin-bottom: 20px;

}

.article-article-sidebar-item {
    margin-bottom: 20px;
}

.btn.btn-3:hover {
    background-color: var(--accent-secondary);
}

.timeline-item:hover {
    color: var(--accent-primary);
}

#scrollToTop {
    display: none;
}

#scrollToTop.visible {
    display: flex;
}


.article-header h1 {
    color: var(--text-primary);
    font-size: 28px;
    margin-bottom: 10px;
}

.article-header span {
    color: var(--text-secondary);
    font-size: 14px;
}

.article-content {
    color: var(--text-primary);
    line-height: 1.6;
}

.article-content p {
    margin-bottom: 15px;
    font-size: 16px;
}

.article-header img {

    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    margin: 20px 0;
    border-radius: 8px;
}

.article-content img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    margin: 20px 0;
    border-radius: 8px;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.article-actions .btn {
    background-color: var(--accent-primary);
    color: var(--text-primary);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.article-actions .btn:hover {
    background-color: var(--accent-secondary);
}

.social-share {
    display: flex;
    gap: 10px;
}

.social-share a {
    color: var(--text-secondary);
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-share a:hover {
    color: var(--accent-primary);
}

#scrollToTop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* padding: 8px 12px; */
    background-color: var(--accent-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 20px;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 10px;
}

.likethispost {
    color: var(--text-secondary);
    font-size: 14px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background-color: var(--dark-bg);
    border-radius: 5px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Wallet */
.wallet-header {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.wallet-balance {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.wallet-balance span {
    color: var(--text-secondary);
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    z-index: 3100;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Animation for Menu Opening */
@keyframes slideIn {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}


/* Chat */
.chat-input {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    border-radius: 12px;
}

.message.seller {
    background: var(--accent-primary);
    margin-left: auto;
}

.message.merchant {
    background: var(--border);
    margin-right: auto;
}

.message.sent {
    align-items: end;
}

.message.received {
    align-items: flex-start;
}

.message-content {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
}

.message.sent .message-content,
.message.seller .message-content {
    background-color: var(--accent-primary);
    color: var(--text-primary);
}

.message.received .message-content,
.message.merchant .message-content {
    background-color: #2a2a2a;
    color: var(--text-primary);
}

.message-meta,
.timestamp {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Rating */
.rating-container {
    background-color: #1e1e1e;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.rating-stars {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-stars input {
    display: none;
}

.rating-stars label {
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-stars input:checked~label,
.rating-stars label:hover,
.rating-stars label:hover~label {
    color: var(--accent-primary);
}

/* Report and Order */
.report-container,
.order-container {
    background-color: #1e1e1e;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.order-info,
.order-details {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.order-details p {
    margin: 10px 0;
}
.order-header {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.order-file {
    margin: 10px 0;
}

.order-file img {
    max-width: 100%;
    border-radius: 8px;
    cursor: pointer;
}

/* Socials */
.socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.socials button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: #1a1f2e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}

.socials button:hover {
    background: #232a3d;
    transform: scale(1.05);
}

.socials img {
    width: 18px;
    height: 18px;
}

/* Deposit */
.table-records {
    margin: 20px 0px;
    width: 100% !important;
    overflow-x: scroll;
}

.tips-section {
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
    margin-left: 20px;
    max-width: 300px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.tips-section h3 {
    color: var(--accent-primary);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.tips-section ul {
    list-style: none;
    padding: 0;
}

.tips-section li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
}

.tips-section li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: var(--warning);
    font-weight: bold;
}

.container-deposit {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.center-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    background: var(--secondary-bg);
}

.banner {
    height: 500px;
}

.banner img {
    height: 100% !important;
}


/* Error */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    padding: 20px;
}

.error-code.red {
    font-size: 120px;
    font-weight: 700;
    color: #FF4D4F;
    text-shadow: 0 0 15px rgba(255, 77, 79, 0.5);
    margin-bottom: 20px;
}

.error-message {
    font-size: 24px;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.error-details {
    font-size: 16px;
    color: #A8B5C7;
    max-width: 500px;
    margin-bottom: 30px;
}

.error-btn.red {
    background: linear-gradient(90deg, #FF4D4F, #FF6B6B);
    color: #FFFFFF;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.error-btn.red:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.5);
}

.error-code.yellow {
    font-size: 120px;
    font-weight: 700;
    color: #FFC107;
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
    margin-bottom: 20px;
}

.error-btn.yellow {
    background: linear-gradient(90deg, #FFC107, #FFD54F);
    color: #FFFFFF;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.error-btn.yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5);
}

.error-code.blue {
    font-size: 120px;
    font-weight: 700;
    color: #00C4CC;
    text-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
    margin-bottom: 20px;
}

.error-btn.blue {
    background: linear-gradient(90deg, #007BFF, #00C4CC);
    color: #FFFFFF;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.error-btn.blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.5);
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.navigation button {
    background-color: var(--accent-primary);
    color: var(--text-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.navigation button:hover {
    background-color: var(--accent-secondary);
}

.navigation button:disabled {
    background-color: var(--text-secondary);
    cursor: not-allowed;
}


/* market */
.market-header {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin: 20px 0px;
}

.featured-markets {
    min-width: 290px;
    border-radius: 20px;
    padding: 10px;
    border: 2px solid var(--border);
}

.featured-markets.header {
    border: none;
}

.market-card img {
    width: 30px;
    height: 30px;
}

.market-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    margin: 10px 0;
    justify-content: space-around;
}

.table-container.table-market {
    padding: 0;
    margin: 0;
    border: 0;
    background-color: transparent;
}

.container-market {
    padding: 0;
    margin: 0;
}

.container-market h2 {
    padding: 20px;
}

.table-container.table-market table {
    background-color: var(--secondary-bg);
}

/* === GRID LAYOUT === */
#trd-basic-layout-container {
    display: grid;
    gap: 8px;
    padding: 10px;
    background: var(--dark-bg);
    color: var(--text-primary);
    border-top: 4px solid var(--secondary-bg);
    min-height: 100vh;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-auto-rows: minmax(100px, auto);
}

.left {
    grid-area: left;
}

.right {
    grid-area: right;
}

.subHeader {
    grid-area: subHeader;
}

.orderbook {
    grid-area: orderbook;
}

.orderbook-header-tips {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    padding: 10px 100px;
}

.chart {
    grid-area: chart;
    display: flex;
    align-items: center;
    justify-content: center;
}

.market {
    grid-area: market;
    gap: 5px;
}

.trades {
    grid-area: trades;
}

.orderform {
    grid-area: orderform;
}

.top-movers {
    grid-area: top-movers;
    /* max-height: 140px !important; */
}

.market .categories,
.top-movers .categories {
    padding: 7px 10px;
}

.market .categories a,
.top-movers .categories a {
    padding: 3px 10px;
}

.basictable {
    grid-area: basictable;
    max-height: 600px;
    overflow-y: scroll;
}

.basictable::-webkit-scrollbar {
    width: 0;
    height: 0;

}

#trd-basic-layout-container>* {
    /* background: var(--secondary-bg); */
    border: 1px solid var(--border);
    /* border-radius: 8px; */
}

#trd-basic-layout-container h2 {
    font-size: .8rem !important;
    padding: 10px 15px 10px 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #1a1a1a;

    border-bottom: 2px solid var(--accent-primary);
}

/* === SUBHEADER === */
.trade-subheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border);
    gap: 20px;
    font-family: inherit;
    color: var(--text-primary);
}

.subheader-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    width: 40%;
}

.icon-star {
    width: 26px;
    height: 26px;
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-star:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.coin-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.pair-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.pair-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.pair-link {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
}

.pair-link svg {
    width: 9px;
    height: 9px;
}

.pair-link:hover {
    color: var(--accent-primary);
}

.price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
}

.main-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.sub-price {
    font-size: 12px;
    color: var(--text-secondary);
}

.subheader-right {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    max-width: 60%;
}

.subheader-right::-webkit-scrollbar {
    height: 0;
    width: 0;
}

.subheader-right {
    scrollbar-width: none;
}

.subheader-right::-webkit-scrollbar-thumb {
    background: transparent;
}

.ticker {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.ticker-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
    flex-shrink: 0;
    min-width: 100px;
}

.ticker-item .label {
    font-size: 11px;
    color: var(--text-secondary);
}

.ticker-item .value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.ticker-item .green {
    color: var(--success);
}

.tags {
    display: inline-flex;
    flex-direction: column;
    flex-shrink: 0;
    padding-left: 10px;
    border-left: 1px solid var(--border);
}

.tag-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.tag-list {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 6px;
}

.tag {
    font-size: 11px;
    padding: 2px 6px;
    color: var(--accent-primary);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tag:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
}

/* === ORDER BOOK & MARKET LIST — FIXED SCROLL === */
.orderbook,
.market,
.trades {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* padding: 10px; */
    /* gap: 8px; */
}

.orderbook h2,
.market h2 {
    margin: 0;
    font-size: 1.3rem;
    flex-shrink: 0;
    font-weight: 600;
}

.table-scroll-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    max-height: 970px;
    border-radius: 6px;
    background: var(--secondary-bg);
    padding: 0;
}
.table-scroll-container>*{
    cursor: pointer;
}
.table-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.table-scroll-container::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

/* Sticky header */
.table-scroll-container thead {
    position: sticky;
    top: 0;
    background: var(--secondary-bg);
    z-index: 1;
    box-shadow: 0 1px 0 var(--border);
}

/* === TRADES === */

.trades ul,
.top-movers ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border, #1c1c1c);
    border-radius: 6px;
    background: var(--secondary-bg, #121212);
}

.top-movers ul {
    max-height: 100px !important;
}

.trades ul::-webkit-scrollbar,
.top-movers ul::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.trades li,
.top-movers li {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    font-size: 12px;
    color: var(--text-primary, #e5e5e5);
    border-bottom: 1px solid var(--border, #1a1a1a);
    transition: background 0.2s ease;
    cursor: pointer;
}

.trades li:hover,
.top-movers li:hover {
    background: rgba(255, 255, 255, 0.08);
}

.trades li span,
.top-movers li span {
    min-width: 50px;
    text-align: right;
}

.trades .sell,
.top-movers .sell {
    color: #ff4d4d;
    font-weight: 500;
}

.trades .buy,
.top-movers .buy {
    color: #00c087;
    font-weight: 500;
}

/* === TABLE STYLES (Orderbook & Market) === */
.table-trade {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: var(--secondary-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.table-trade th,
.table-trade td {
    padding: 8px 10px;
    text-align: right;
    white-space: nowrap;
    font-size: .6rem;
}

.table-trade th:first-child,
.table-trade td:first-child {
    text-align: left;
}

.table-trade thead {
    background: rgba(255, 255, 255, 0.04);
}

.table-trade th {
    font-weight: 500;
    color: var(--text-secondary, #999);
    border-bottom: 1px solid var(--border, #1f1f1f);

}

.table-trade tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.table-trade tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

.table-trade td.sell {
    color: #ff4d4d;
    position: relative;
}

.table-trade td.sell::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to right, rgba(255, 77, 77, 0.12), transparent);
    z-index: 0;
}

.table-trade td.buy {
    color: #00c087;
    position: relative;
}

.table-trade td.buy::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to right, rgba(0, 192, 135, 0.12), transparent);
    z-index: 0;
}

.table-trade td span,
.table-trade td {
    position: relative;
    z-index: 1;
    font-size: 10px;
}

.table-trade th {
    color: var(--text-secondary);
}

.table-trade td:first-child {
    text-align: left;
    color: var(--text-primary);
}

.table-trade tr:hover {
    background-color: #1a1a1a;
}

/* === ORDER FORM === */
.orderform {
    display: flex;
    flex-direction: column;
    background: var(--secondary-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    min-height: 334px;
}

.orderform-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
    margin-bottom: 8px;
}

.orderform-header .tabs {
    display: flex;
    gap: 6px;
}

.orderform-header button {
    background: none;
    border: none;
    padding: 6px 10px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    width: 100%;
    transition: background 0.2s, color 0.2s;
}

.orderform-header button.active,
.orderform-header button:hover {
    background: var(--accent-primary);
    color: #fff;
}

.orderform-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.orderform-tabs button {
    background: none;
    border: none;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.orderform-tabs button.active,
.orderform-tabs button:hover {
    color: var(--accent-primary);
}

.orderform-content {
    display: flex;
    gap: 10px;
    flex: 1;
}

.order-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    padding: 10px;
    border: 1px solid var(--border);
}

/* === CUSTOM SPINNER INPUT (Binance Style) === */
.input-spinner {
    position: relative;
    width: 100%;
}

.input-spinner input[type="number"] {
    width: 100%;
    padding: 8px 32px 8px 10px; /* Space for buttons */
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-spinner input[type="number"]:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

/* Hide default spinners */
.input-spinner input[type="number"]::-webkit-outer-spin-button,
.input-spinner input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Spinner Buttons Container */
.spinner-controls {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1px;
    z-index: 2;
}

.spinner-up,
.spinner-down {
    width: 22px;
    height: 18px;
    background: var(--secondary-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 10px;
    user-select: none;
}

.spinner-up {
    border-radius: 4px 4px 0 0;
    border-bottom: none;
}

.spinner-down {
    border-radius: 0 0 4px 4px;
}

.spinner-up:hover,
.spinner-down:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.spinner-down:hover {
    transform: translateY(1px);
}

.spinner-up:active,
.spinner-down:active {
    transform: scale(0.95);
    background: #0056b3;
}

/* SVG Arrows (Bigger & Crisp) */
.spinner-controls svg {
    width: 10px;
    height: 10px;
    pointer-events: none;
}

/* Disabled state */
.input-spinner input:disabled ~ .spinner-controls button {
    opacity: 0.5;
    cursor: not-allowed;
}

.order-side h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.order-side label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    margin-bottom: 2px;
}

.order-side input[type="number"] {
    width: 100%;
    padding: 10px 0px 10px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    outline: none;
}

.order-side input[type="number"]:focus {
    border-color: var(--accent-primary);
}

.slider {
    margin: 10px 0;
}

.slider input[type="range"] {
    width: 100%;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-secondary);
}

.available {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: auto;
    margin-bottom: 6px;
}

.buy-btn,
.sell-btn {
    width: 100%;
    padding: 8px;
    font-size: 13px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.buy-btn {
    background: var(--success);
    color: #fff;
}

.buy-btn:hover {
    opacity: 0.9;
}

.sell-btn {
    background: var(--error, #e74c3c);
    color: #fff;
}

.sell-btn:hover {
    opacity: 0.9;
}

/* === ORDER STATUS BADGES === */
.status-open {
    color: var(--accent-primary);
}

.status-filled {
    color: var(--success);
}

.status-partial {
    color: #ffaa00;
}

.status-pending {
    color: var(--text-secondary);
}



/* Media Queries */
/* === RESPONSIVE GRID === */
@media (max-width: 1600px) {
    #trd-basic-layout-container {
        grid-template:
            "subHeader subHeader subHeader market"      56px
            "orderbook chart     chart     market"     360px
            "orderbook chart     chart     trades"     160px
            "orderbook orderform orderform trades"     minmax(169px, 1fr)
            "orderbook orderform orderform top-movers" minmax(146px, auto)
            "basictable basictable basictable basictable" 560px
            / 320px 1fr 1fr 320px;
    }
}

@media (max-width: 1399px) and (min-width: 901px) {
    #trd-basic-layout-container {
        grid-template:
            "subHeader subHeader market"      56px
            "orderbook chart     market"     360px
            "orderbook chart     trades"     160px
            "orderbook orderform trades"     minmax(169px, 1fr)
            "orderbook orderform top-movers" minmax(146px, auto)
            "basictable basictable basictable" 560px
            / 280px 1fr 280px;
    }
}


@media (max-width: 1200px) {
    .subheader-right {
        justify-content: flex-start;
        gap: 16px;
        padding-bottom: 4px;
    }
}

/* === MOBILE & SMALL SCREENS === */
@media (max-width: 900px) {
    #trd-basic-layout-container {
        grid-template:
            "subHeader"     56px
            "chart"        300px
            "market"       auto
            "orderbook"    auto
            "orderform"    auto
            "trades"       auto
            "top-movers"   auto
            "basictable"   auto
            / 1fr;
        gap: 12px;
        padding: 8px;
    }

    /* Ensure full width on mobile */
    #trd-basic-layout-container > * {
        width: 100% !important;
        min-width: 0;
    }

    /* Stack order form tabs vertically */
    .orderform-content {
        flex-direction: column;
    }

    .orderform-content > * {
        width: 100%;
    }

    /* Make subheader responsive */
    .trade-subheader {
        flex-direction: row;
        gap: 12px;
        padding: 12px;
    }

    .subheader-right {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
        width: 60% !important;
    }
    .subheader-left{
        width: 20% !important;
    }
    .ticker {
        flex-direction: row;
        gap: 16px;
    }
}
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }

    .logo {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 20px 5px;
    }

    nav.menu {
        /* display: none !important; */
    }



    .custom-table th,
    .custom-table td,
    table th,
    table td {
        overflow-x: scroll;
    }

    .asside {
        width: 100vw;
        font-size: 10px;
    }

    .asside ul {
        display: flex;
        flex-direction: row;
        overflow-x: scroll;
        padding: 0 10px;
        width: 100vw;
        align-items: center;
        margin-top: 0px;
        justify-content: space-evenly;
    }

    .asside h2 {
        display: none;

    }

    .menu-item.active {
        font-size: 12px;
    }

    .panel {
        margin: auto;
        /* width: 100%; */
        /* max-width: 100%; */
    }

    .recommended {
        display: block;
        width: fit-content;
        margin-top: 10px;
    }

    .menu {
        /* display: none; */
        width: 0;
        height: 0;
        transition: all .3s ease;
    }

    .menu>.menu-item-nav,
    .menu>.menu-icons {
        display: none;
    }

    .menu.flex {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        width: 100vw;
        /* padding: 0px 0px 0px 30px; */
        height: 100vh !important;
    }

    .menu.flex>.menu-item-nav,
    .menu.flex>.menu-icons {
        display: flex;
        flex-direction: column;
        padding: 10px 30px;
        width: 100%;
    }

    .menu.flex>.menu-icons {
        display: flex;
        justify-content: space-around;
        flex-direction: row;
        width: 100%;
    }

    .table-container {
        /* padding: 0; */
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
    }

    .hamburger div {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        transition: all 0.3s;
    }

    .hamburger:hover div {
        background: var(--accent-primary);
    }

    .menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-bg);
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }

    .menu-item-nav {
        width: 100%;
        /* display: none; */
    }

    .menu-item-nav>a {
        font-size: 14px;
        padding: 12px;
    }

    .dropdown {
        position: static;
        width: 100%;
        background: #1e1f2e;
    }

    .right {
        flex: 1;
        justify-content: flex-end;
    }


    .dashboard-container {
        display: grid !important;
        padding: 0px;
        grid-template-columns: 1fr;
    }

    .search {
        width: 100%;
    }

    .center-container {
        /* display: grid;
        grid-template-columns: 1fr; */
        display: flex;
        width: 100vw;
        flex-direction: row;
    }

    .banner {
        display: none;
    }

    .kyc-container {
        padding: 20px;
    }

    .kyc-container.grid {
        grid-template-columns: 1fr;
    }

    .container.grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 20px;
        margin: 10px;
    }

    .container.ticket {
        padding: 20px;
    }

    .header,
    .ticket-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header h1,
    .ticket-header h1 {
        font-size: 24px;
    }

    .card {
        padding: 20px;
    }

    .id-photo .status {
        flex-direction: column;
        align-items: center;
    }

    .status img {

        width: 100% !important;
    }

    .id-photo select {
        width: 100%;
    }

    .progress-bar {
        flex-wrap: wrap;
    }

    .progress-step {
        flex: 0 1 20%;
    }

    .id-photo .upload {
        flex-direction: column;
        align-items: center;
    }

    .upload .front-id,
    .upload .back-id {
        width: 100%;
        max-width: 300px;
    }

    .container-deposit {
        flex-direction: column;
    }

    .tips-section {
        margin-left: 0;
        margin-top: 20px;
    }


    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-column {

        border-bottom: 2px solid var(--border);
        border-right: 0px;
    }

    .footer-column h3 {
        margin-top: 20px;
    }

    .footer-column:first-child h3 {
        margin-top: 0;
    }

    #scrollToTop {
        display: none !important;
    }

    .article-container {
        padding: 15px;
        width: 100%;
    }

    .blog-container {
        grid-template-columns: 1fr;
        padding: 10px 0;
    }

    .container.article {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 0;
    }

    .article-header h1 {
        font-size: 22px;
    }

    .article-content p {
        font-size: 14px;
    }

    .dashboard-container.grid.ds {
        display: grid;
        grid-template-columns: 1fr;
        padding: 0px 10px;
    }

    .dashboard-container.grid.ds .panel {
        margin: 0px;
    }

    .dashboard-container.grid.ds .panel .setting-item-container {
        width: 400px;
    }

    .setting-item-container {
        padding: 20px 0px;
        width: 350px;
    }

    .setting-item-container .card {
        /* margin: 10px 0px; */
    }
}

@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 16px;
    }

    .container.ticket {
        margin: 20px;
        padding: 16px;
    }

    .custom-table {
        display: none;
    }

    .featured-post {
        flex-direction: column;
    }

    .featured-post img {
        width: 100%;
    }

    .order-card {
        display: block;
    }

    .dropdown-box {
        width: 100%;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .navigation {
        flex-direction: column;
    }

    .error-code {
        font-size: 80px;
    }

    .error-message {
        font-size: 20px;
    }

    .error-details {
        font-size: 14px;
    }

    .error-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .navigation button {
        margin-bottom: 10px;
        width: 100%;
    }

    .kyc-container h2 {
        font-size: 20px;
    }

    .photo-requirements h1 {
        font-size: 18px;
    }

    .footer-bottom {
        padding-top: 15px;
    }

    .id-photo .status img {
        width: 60px;
        height: 40px;
    }

    .upload img {
        max-width: 120px;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-body p {
        font-size: 14px;
    }

    .modal-btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .popup {
        max-width: 95%;
        right: 10px;
        top: 10px;
        padding: 12px;
    }

    .popup-header h3 {
        font-size: 16px;
    }

    .popup-body {
        font-size: 13px;
    }

    .popup-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    .main-content h1 {
        font-size: 32px;
    }

    .main-content p {
        font-size: 16px;
    }

    .trade-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .article-actions {
        flex-direction: column;
    }

    .article-actions .btn {
        width: 100%;
    }
}