/**
 * CTDT - My Account Page Styles
 * Prefix: .ctdt- (scoped, no conflict with theme)
 * Matches Figma Node 1083:587
 *
 * @package BSC_CaoThuDauTu
 */

/* ============================================
   Layout & Container Settings
   ============================================ */
.ctdt-taikhoan-page .ctdt-page {
    background: url('../images/homepage/bg-page.webp') #011434 center / cover no-repeat;
    padding-bottom: 80px;
    overflow-x: hidden;
    position: relative;
}

@media (max-width: 1023px) {
    .ctdt-taikhoan-page .ctdt-page {
        padding-bottom: 60px;
    }
}


/* ============================================
   Title Styles
   ============================================ */
.ctdt-taikhoan {
    width: 100%;
    margin-top: 56px;
    padding-top: 80px;
    position: relative;
    z-index: 10;
}

.ctdt-taikhoan__title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 28px;
}

.ctdt-taikhoan__title-line {
    display: inline-block;
    flex: 0 0 40px;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, #E6C073 100%);
}

.ctdt-taikhoan__title-line--right {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(90deg, #E6C073 0%, rgba(255, 255, 255, 0.00) 100%);
}

.ctdt-taikhoan__title {
    position: relative;
    font-family: var(--ctdt-font-family);
    font-size: 48px;
    font-weight: 900;
    /* Barlow Black / Heavy */
    line-height: 68px;
    text-align: center;
    text-transform: uppercase;
    background: linear-gradient(180deg, #FBE29F 0%, #C68C2E 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 4px 5.1px rgba(4, 22, 43, 0.75));
    margin: 0 0 22px;
}

.ctdt-taikhoan__title::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 418px;
    height: 2px;
    background: linear-gradient(90deg, rgba(217, 210, 183, 0.00) 0.07%, #E6C073 50%, rgba(217, 210, 183, 0.00) 100%);
    z-index: 1;
}

/* ============================================
   Stack Dashboard Layout
   ============================================ */
.ctdt-taikhoan__stack {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

/* Glassmorphism box base */
.ctdt-taikhoan__box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5); */
    box-sizing: border-box;
}

/* Box Header with overlays */
.ctdt-box__header {
    position: relative;
    height: 64px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
    background: linear-gradient(90deg, rgba(28, 71, 140, 0.50) 0%, rgba(38, 46, 105, 0.50) 100%);
}

.ctdt-box__header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
}

.ctdt-box__header-title {
    position: relative;
    z-index: 2;
    font-family: var(--ctdt-font-family);
    font-size: 20px;
    font-weight: 700;
    /* Barlow Bold */
    line-height: 32px;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
}

.ctdt-box__content {
    position: relative;
    width: 100%;
    padding: 32px 40px;
    box-sizing: border-box;
}

/* ============================================
   Box 1: THÔNG TIN ĐĂNG KÝ
   ============================================ */
.ctdt-box__content--registration {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 40px;
}

.ctdt-reg-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.ctdt-reg-col:first-child {
    flex: 0 0 170px;
    gap: 20px;
}

.ctdt-reg-col:nth-child(3) {
    flex: 0 0 220px;
}

.ctdt-reg-col:nth-child(5) {
    flex: 0 0 320px;
}

.ctdt-reg-col:nth-child(7) {
    flex: 0 0 250px;
}

.ctdt-reg-label {
    font-family: var(--ctdt-font-family);
    font-size: 18px;
    font-weight: 500;
    /* Barlow Medium */
    line-height: 28px;
    color: #ffffff;
    opacity: 0.5;
    text-transform: uppercase;
}

.ctdt-reg-val-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctdt-reg-badge-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ctdt-reg-badge-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ctdt-reg-displayname-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ctdt-reg-displayname-icon svg {
    width: 40px;
    height: 40px;
}

.ctdt-reg-calendar-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ctdt-reg-calendar-icon img {
    width: 76px;
    height: 76px;
    position: absolute;
    left: -9px;
    top: 50%;
    transform: translateY(-50%);
    max-width: none;
}

.ctdt-reg-value {
    white-space: nowrap;
    font-family: var(--ctdt-font-family);
    font-size: 20px;
    font-weight: 700;
    /* Barlow Bold */
    line-height: 32px;
    color: #ffffff;
}

.ctdt-vertical-divider {
    width: 1px;
    height: 171px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    flex-shrink: 0;
    margin: 0 20px;
}

/* ============================================
   Row styling (Boxes 2 & 3 side-by-side)
   ============================================ */
.ctdt-taikhoan__row {
    display: flex;
    gap: 22px;
    width: 100%;
}

.ctdt-taikhoan__box--half {
    flex: 1;
    width: calc(50% - 11px);
    min-height: 299px;
}

/* Box 2: THÔNG TIN GIAO DỊCH */
.ctdt-box__content--trading {
    display: flex;
    align-items: center;
    height: calc(299px - 64px);
    padding: 0 40px;
}

.ctdt-trading-container {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.ctdt-trading-label {
    font-family: var(--ctdt-font-family);
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    color: #ffffff;
    opacity: 0.5;
    width: 182px;
    flex-shrink: 0;
}

.ctdt-trading-value-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ctdt-trading-value {
    font-family: var(--ctdt-font-family);
    font-size: 40px;
    font-weight: 700;
    line-height: 54px;
    letter-spacing: -0.5px;
}

.ctdt-trading-update {
    font-family: var(--ctdt-font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #ffffff;
    opacity: 0.5;
}

/* Box 3: KẾT QUẢ CÁ NHÂN */
.ctdt-box__content--personal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(299px - 64px);
    padding: 0 40px;
}

.ctdt-personal-label {
    color: var(--White, #FFF);
    font-family: var(--ctdt-font-family);
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
    opacity: 0.5;
    /* 155.556% */
}

.ctdt-personal-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ctdt-personal-section:first-of-type {
    width: 100%;
}

.ctdt-personal-section:last-of-type {
    width: 100%;
}

.ctdt-personal-yield-grid {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ctdt-yield-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: fit-content;
    text-align: center;
}

.ctdt-yield-title {
    font-family: var(--ctdt-font-family);
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    color: #ffffff;
    text-transform: uppercase;
}

.ctdt-yield-val {
    font-family: var(--ctdt-font-family);
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
}

.ctdt-personal-subdivider {
    width: 1px;
    height: 59px;
    background: rgba(255, 255, 255, 0.15);
}

.ctdt-personal-hr {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.ctdt-personal-rank-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ctdt-personal-rank {
    font-family: var(--ctdt-font-family);
}

.ctdt-rank-num {
    font-size: 32px;
    font-weight: 700;
    line-height: 46px;
    background: linear-gradient(180deg, #FEE6BD 0%, #DDBF93 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ctdt-rank-total {
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    color: rgba(255, 255, 255, 0.5);
}

.ctdt-personal-trend {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctdt-trend-prev {
    font-family: var(--ctdt-font-family);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: #ffffff;
    opacity: 0.5;
}

.ctdt-trend-arrow-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ctdt-trend-arrow-wrapper img {
    width: 16px;
    height: 16px;
}

.ctdt-trend-change {
    font-family: var(--ctdt-font-family);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

/* ============================================
   Box 4: ĐIỀU KIỆN HỢP LỆ
   ============================================ */
.ctdt-box__content--conditions {
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ctdt-conditions-tabs {
    display: flex;
    align-items: center;
    margin: -32px -40px 0 -40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.ctdt-conditions-tab {
    padding: 14px 40px;
    font-family: var(--ctdt-font-family);
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    color: #ffffff;
    background: transparent;
    border: none;
    border-bottom: 4px solid transparent;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}

.ctdt-conditions-tab--active {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 4px solid #eed2a9;
    background: linear-gradient(181.5deg, #FBE29F 30%, #DDBF93 115%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ctdt-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.ctdt-conditions-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.ctdt-conditions-table thead {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ctdt-conditions-table th {
    padding-bottom: 14px;
    font-family: var(--ctdt-font-family);
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    color: #ffffff;
    opacity: 0.5;
    text-transform: uppercase;
}

.ctdt-conditions-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ctdt-conditions-table tbody tr:last-child {
    border-bottom: none;
}

.ctdt-conditions-table td {
    padding: 24px 0;
    font-family: var(--ctdt-font-family);
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    color: #ffffff;
    vertical-align: middle;
}

.ctdt-td-cond {
    font-weight: 500 !important;
}

.ctdt-td-desc {
    opacity: 0.5;
}

.ctdt-td-detail {
    white-space: nowrap;
}

.ctdt-status-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ctdt-status-icon-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.ctdt-status-glow {
    position: absolute;
    top: 13.75%;
    left: 13.75%;
    width: 72.5%;
    height: 72.5%;
    transform: scale(2.17);
}

.ctdt-status-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    filter: drop-shadow(0px 1.6px 0.8px rgba(0, 0, 0, 0.25));
}

.ctdt-status-text {
    font-family: var(--ctdt-font-family);
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
}

/* ============================================
   Box 5: LỊCH SỬ GHI NHẬN KẾT QUẢ
   ============================================ */
.ctdt-box__content--history {
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.ctdt-history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.ctdt-history-table thead,
.ctdt-history-table thead tr {
    border: none !important;
}

.ctdt-history-table th {
    padding: 12px 24px;
    font-family: var(--ctdt-font-family);
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    color: #ffffff;
    opacity: 0.5;
    text-align: center;
    border: none !important;
}

.ctdt-history-table th:first-child {
    text-align: left;
    /* padding-left: 48px; */
}

.ctdt-history-table th:last-child {
    text-align: right;
    /* padding-right: 48px; */
}


.ctdt-history-table {
    border-radius: 12px;
    border: none;
}


.ctdt-history-table tbody tr {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background 0.2s ease;
}

.ctdt-history-table tbody tr:nth-child(odd) {
    background: linear-gradient(90deg, rgba(28, 71, 140, 0.50) 0%, rgba(38, 46, 105, 0.50) 100%);
}

.ctdt-history-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.ctdt-history-table td {
    padding: 16px 24px;
    font-family: var(--ctdt-font-family);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: #ffffff;
    text-align: center;
    vertical-align: middle;
}

/* Outer border for the tbody group */
.ctdt-history-table tbody td:first-child {
    text-align: left;
    padding-left: 48px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.ctdt-history-table tbody td:last-child {
    text-align: right;
    padding-right: 48px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.ctdt-history-table tbody tr:first-child td {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ctdt-history-table tbody tr:last-child td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Subtle separator between rows inside tbody */
/* .ctdt-history-table tbody tr:not(:last-child) td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
} */

/* Border radius for the 4 corners of the tbody block */
.ctdt-history-table tbody tr:first-child td:first-child {
    border-top-left-radius: 12px;
}

.ctdt-history-table tbody tr:first-child td:last-child {
    border-top-right-radius: 12px;
}

.ctdt-history-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.ctdt-history-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.ctdt-pagination-container {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.ctdt-pagination-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ctdt-pagination-arrow:hover:not(:disabled) {
    transform: scale(1.1);
}

.ctdt-pagination-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ctdt-pagination-arrow img {
    width: 19px;
    height: 24px;
}

.ctdt-pagination-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctdt-pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.ctdt-pagination-dot--active {
    background: #fff;
}

.ctdt-pagination-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Color Helpers
   ============================================ */
.ctdt-green-text {
    color: #22ff59 !important;
}

.ctdt-red-text {
    color: #ff3737 !important;
}

.ctdt-yellow-text {
    color: #ffb81c !important;
}

.ctdt-gold-text {
    color: #eed2a9 !important;
}

/* ============================================
   Responsive Design Breakpoints
   ============================================ */
@media (max-width: 1440px) {
    .ctdt-taikhoan__stack {
        max-width: 100%;
        padding: 0 20px;
        gap: 32px;
    }

    .ctdt-taikhoan__title {
        font-size: 38px;
        line-height: 52px;
        margin-bottom: 16px;
    }

    .ctdt-taikhoan__title-wrapper {
        margin-bottom: 20px;
    }

    /* Reduce padding on larger tablets */
    .ctdt-box__header {
        padding: 0 32px;
        height: 56px;
    }

    .ctdt-box__content {
        padding: 24px 32px;
    }

    .ctdt-conditions-tabs {
        margin: -24px -32px 0 -32px;
    }

    .ctdt-conditions-tab {
        padding-left: 32px;
        padding-right: 32px;
    }

    .ctdt-box__content--registration {
        padding: 24px 32px;
    }

    .ctdt-box__content--trading,
    .ctdt-box__content--personal {
        padding: 0 32px;
        height: calc(280px - 56px);
    }
    
    .ctdt-taikhoan__box--half {
        min-height: 280px;
    }

    /* Decrease text sizes slightly & prevent line wrapping */
    .ctdt-reg-label,
    .ctdt-trading-label,
    .ctdt-personal-label {
        font-size: 16px;
        line-height: 24px;
        white-space: nowrap;
    }

    .ctdt-reg-value {
        font-size: 18px;
        line-height: 28px;
        white-space: nowrap;
    }

    .ctdt-trading-value {
        font-size: 36px;
        line-height: 48px;
        white-space: nowrap;
    }

    .ctdt-yield-title,
    .ctdt-yield-val {
        font-size: 18px;
        line-height: 28px;
        white-space: nowrap;
    }

    .ctdt-rank-num {
        font-size: 28px;
        line-height: 40px;
        white-space: nowrap;
    }

    .ctdt-rank-total {
        font-size: 18px;
        line-height: 28px;
        white-space: nowrap;
    }
}

@media (max-width: 1360px) {
    .ctdt-taikhoan__stack {
        gap: 28px;
    }

    .ctdt-box__header {
        padding: 0 24px;
    }

    .ctdt-box__content {
        padding: 24px 24px;
     }

    .ctdt-conditions-tabs {
        margin: -24px -24px 0 -24px;
    }

    .ctdt-conditions-tab {
        padding-left: 24px;
        padding-right: 24px;
    }

    .ctdt-box__content--registration {
        padding: 24px 24px;
    }

    .ctdt-box__content--trading,
    .ctdt-box__content--personal {
        padding: 0 24px;
    }

    /* Adjust registration column widths to fit side-by-side gracefully */
    .ctdt-reg-col:first-child {
        flex: 0 0 150px;
    }

    .ctdt-reg-col:nth-child(3) {
        flex: 0 0 200px;
    }

    .ctdt-reg-col:nth-child(5) {
        flex: 0 0 280px;
    }

    .ctdt-reg-col:nth-child(7) {
        flex: 0 0 220px;
    }

    .ctdt-reg-badge-icon {
        width: 60px;
        height: 60px;
    }

    .ctdt-reg-displayname-icon {
        width: 60px;
        height: 60px;
    }

    .ctdt-reg-displayname-icon svg {
        width: 34px;
        height: 34px;
    }

    .ctdt-reg-calendar-icon {
        width: 54px;
        height: 54px;
    }

    .ctdt-reg-calendar-icon img {
        width: 64px;
        height: 64px;
        left: -5px;
    }

    .ctdt-vertical-divider {
        margin: 0 16px;
        height: 140px;
    }

    /* Box 2: Trading Section adjustments */
    .ctdt-trading-container {
        gap: 24px;
    }
    
    .ctdt-trading-label {
        width: 150px;
    }

    .ctdt-trading-value {
        font-size: 32px;
        line-height: 42px;
    }

   

    .ctdt-personal-yield-grid {
        gap: 16px;
    }

    .ctdt-yield-col {
        width: auto;
    }
}

@media (max-width: 1280px) {
    /* Allow the two tables to scroll horizontally below 1280px */
    .ctdt-conditions-table {
        min-width: 1000px;
    }

    .ctdt-history-table {
        min-width: 1000px;
    }

    /* Prevent wrapping of table cells and header text */
    .ctdt-conditions-table th,
    .ctdt-conditions-table td,
    .ctdt-history-table th,
    .ctdt-history-table td {
        white-space: nowrap !important;
    }

    /* Smooth premium responsive table scrolling */
    .ctdt-table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    /* Beautiful gold themed scrollbar for a premium look */
    .ctdt-table-responsive::-webkit-scrollbar {
        height: 6px;
    }
    .ctdt-table-responsive::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }
    .ctdt-table-responsive::-webkit-scrollbar-thumb {
        background: rgba(230, 192, 115, 0.3);
        border-radius: 3px;
    }
    .ctdt-table-responsive::-webkit-scrollbar-thumb:hover {
        background: rgba(230, 192, 115, 0.6);
    }

    .ctdt-taikhoan__title {
        font-size: 34px;
        line-height: 44px;
    }

    .ctdt-reg-col:first-child {
        flex: 0 0 130px;
    }

    .ctdt-reg-col:nth-child(3) {
        flex: 0 0 170px;
    }

    .ctdt-reg-col:nth-child(5) {
        flex: 0 0 240px;
    }

    .ctdt-reg-col:nth-child(7) {
        flex: 0 0 190px;
    }
}

@media (max-width: 1024px) {
    /* Stack Box 1 (Registration contents) vertically */
    .ctdt-box__content--registration {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
        padding: 32px 24px;
    }

    .ctdt-vertical-divider {
        display: none;
    }

    .ctdt-reg-col {
        flex: 1 1 auto !important;
        width: 100%;
        gap: 12px;
    }

    /* Stack Box 2 and Box 3 row side-by-side into a single vertical column */
    .ctdt-taikhoan__row {
        flex-direction: column;
        gap: 24px;
    }

    .ctdt-taikhoan__box--half {
        width: 100%;
        min-height: auto;
    }

    /* Stack Trading section details inside Box 2 */
    .ctdt-box__content--trading {
        height: auto;
        padding: 32px 24px;
    }

    .ctdt-trading-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }

    .ctdt-trading-label {
        width: 100%;
    }

    .ctdt-trading-value-wrapper {
        width: 100%;
    }

    /* Stack Yield Grid and Rank section inside Box 3 */
    .ctdt-box__content--personal {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        height: auto;
        padding: 32px 24px;
        gap: 32px;
    }

    .ctdt-personal-section {
        width: 100% !important;
    }

    .ctdt-personal-section .ctdt-vertical-divider {
        display: none;
    }
}

@media (max-width: 768px) {
    .ctdt-taikhoan {
        margin-top: 40px;
        padding-top: 60px;
    }

    .ctdt-taikhoan__title {
        font-size: 28px;
        line-height: 38px;
    }

    .ctdt-taikhoan__title::before {
        width: 80%;
    }

    .ctdt-box__header {
        padding: 0 20px;
        height: 52px;
    }

    .ctdt-box__header-title {
        font-size: 18px;
        line-height: 28px;
    }

    .ctdt-box__content {
        padding: 20px;
    }

    .ctdt-box__content--registration,
    .ctdt-box__content--trading,
    .ctdt-box__content--personal,
    .ctdt-box__content--conditions,
    .ctdt-box__content--history {
        padding: 20px;
    }

    .ctdt-conditions-tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        margin: -20px -20px 0 -20px;
    }

    .ctdt-conditions-tab {
        flex-shrink: 0;
        padding: 10px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ctdt-taikhoan__stack {
        gap: 20px;
        padding: 0 12px;
    }

    .ctdt-taikhoan__title {
        font-size: 22px;
        line-height: 30px;
    }

    .ctdt-taikhoan__title-line {
        flex: 0 0 20px;
        width: 20px;
    }

    .ctdt-box__header {
        padding: 0 16px;
        height: 48px;
    }

    .ctdt-box__header-title {
        font-size: 16px;
        line-height: 24px;
    }

    .ctdt-box__content {
        padding: 16px;
    }

    .ctdt-box__content--registration,
    .ctdt-box__content--trading,
    .ctdt-box__content--personal,
    .ctdt-box__content--conditions,
    .ctdt-box__content--history {
        padding: 16px;
    }

    .ctdt-reg-badge-icon {
        width: 48px;
        height: 48px;
    }

    .ctdt-reg-calendar-icon {
        width: 44px;
        height: 44px;
    }

    .ctdt-reg-calendar-icon img {
        width: 52px;
        height: 52px;
        left: -4px;
    }

    .ctdt-trading-value {
        font-size: 28px;
        line-height: 38px;
    }

    .ctdt-personal-yield-grid {
        justify-content: space-between;
        width: 100%;
        gap: 8px;
    }

    .ctdt-yield-col {
        flex: 1;
    }

    .ctdt-yield-title,
    .ctdt-yield-val {
        font-size: 15px;
        line-height: 22px;
    }

    .ctdt-rank-num {
        font-size: 24px;
        line-height: 32px;
    }

    .ctdt-rank-total {
        font-size: 16px;
        line-height: 24px;
    }

    .ctdt-conditions-tabs {
        margin: -16px -16px 0 -16px;
    }

    .ctdt-conditions-tab {
        padding: 8px 16px;
        font-size: 14px;
    }

    .ctdt-pagination-dot {
        width: 6px;
        height: 6px;
    }

}