/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700&family=Yarndings+12&display=swap');

:root {
    --primary-color: #fff;
    --secondary-color: #c0c0c0;
    /* Sáng hơn một chút */
    --background-color: #10101a;
    --card-background: rgba(16, 22, 32, 0.35);
    /* Reduced opacity for more faded look */
    /* Tối hơn, trong hơn */
    --accent-color: #00f2ea;
    --border-color: rgba(0, 242, 234, 0.1);
    /* Slightly more transparent border */
    --shadow-color: rgba(0, 242, 234, 0.1);
    --font-main: 'M PLUS Rounded 1c', sans-serif;
    --font-title: 'Yarndings 12', cursive;
}

/* Hiệu ứng chuyển động cho tiêu đề */
@keyframes title-glow {

    0%,
    100% {
        text-shadow: 0 0 8px var(--accent-color), 0 0 16px var(--accent-color);
    }

    50% {
        text-shadow: 0 0 12px #fff, 0 0 20px var(--accent-color);
    }
}


body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background: url('images/bg.png') center center/cover no-repeat fixed;
    color: var(--primary-color);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 16, 26, 0.4);
    /* Slightly more transparent overlay */
    z-index: 0;
    pointer-events: none;
}

.container,
header,
main,
footer,
.card,
.stat-card,
.donate-item,
.qa-item {
    position: relative;
    z-index: 1;
    background: rgba(16, 22, 32, 0.3);
    /* Reduced opacity here */
    backdrop-filter: blur(6px);
    /* Slightly less blur to reveal more of the background */
    border: 1.5px solid rgba(0, 242, 234, 0.1);
    /* More transparent border */
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
    /* Slightly less intense shadow */
    border-radius: 16px;
}

.container {
    max-width: 1000px;
    width: 98vw;
    margin: 20px auto;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    /* Reduced opacity for the main container */
    border-radius: 15px;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.18);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.main-title {
    font-family: var(--font-title);
    font-size: 3.2rem;
    color: var(--accent-color);
    margin: 0;
    animation: title-glow 4s ease-in-out infinite;
    letter-spacing: 2px;
}

.subtitle {
    color: var(--secondary-color);
    font-size: 1.13rem;
    margin-top: 8px;
    text-align: left;
    background: rgba(0, 242, 234, 0.07);
    border-left: 4px solid #00f2ea;
    padding: 12px 18px 12px 18px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 2px 8px 0 rgba(0, 242, 234, 0.08);
    position: relative;
}

.subtitle-jp {
    font-family: 'Noto Sans JP', 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.15rem;
    color: #b0eaff;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Card base style với hiệu ứng */
.card {
    background: var(--card-background);
    /* Uses the updated --card-background variable */
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.28);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 0 16px var(--shadow-color);
}

.card,
.stat-card,
.donate-item,
.qa-item,
.card * {
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    /* Keep or slightly increase text shadow for readability */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(16, 22, 32, 0.3);
    /* Directly reduced opacity for stat cards */
    border-radius: 10px;
    padding: 13px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s;
    min-width: 0;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.28);
}

.stat-card img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 7px;
    background: #fff1;
}

.stat-card h4 {
    margin: 0 0 2px 0;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.stat-card p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    /* Căn logo và text */
    align-items: center;
}

/* CSS cho bảng giá mới */
.price-table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
}

#pixel-price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
    margin-bottom: 25px;
    font-size: 1rem;
    background: rgba(16, 22, 32, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.18);
}

#pixel-price-table th,
#pixel-price-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 242, 234, 0.1);
    vertical-align: middle;
}

#pixel-price-table th {
    text-align: left;
    color: var(--accent-color);
    font-weight: bold;
    background: rgba(0, 242, 234, 0.08);
    font-size: 1.02rem;
}

#pixel-price-table th:first-child {
    border-top-left-radius: 12px;
}

#pixel-price-table th:last-child {
    border-top-right-radius: 12px;
}

#pixel-price-table td {
    text-align: left;
    background: rgba(16, 22, 32, 0.2);
    color: #fff;
    font-weight: 500;
}

#pixel-price-table td:nth-child(2),
#pixel-price-table td:nth-child(3) {
    text-align: right;
}

/* Pixel Price Table column widths - desktop */
#pixel-price-table th:nth-child(1),
#pixel-price-table td.price-cell {
    width: 27%;
    min-width: 80px;
    text-align: left;
}

#pixel-price-table th:nth-child(2),
#pixel-price-table td:nth-child(2) {
    width: 35%;
    min-width: 80px;
    text-align: right;
}

#pixel-price-table th:nth-child(3),
#pixel-price-table td:nth-child(3) {
    width: 38%;
    min-width: 90px;
    text-align: right;
}

/* Responsive: Tablet */
@media (max-width: 900px) {

    #pixel-price-table th:nth-child(1),
    #pixel-price-table td.price-cell {
        width: 27%;
        min-width: 60px;
    }

    #pixel-price-table th:nth-child(2),
    #pixel-price-table td:nth-child(2) {
        width: 35%;
        min-width: 60px;
    }

    #pixel-price-table th:nth-child(3),
    #pixel-price-table td:nth-child(3) {
        width: 38%;
        min-width: 70px;
    }
}

/* Responsive: Mobile */
@media (max-width: 600px) {

    #pixel-price-table th,
    #pixel-price-table td {
        font-size: 13px;
        padding: 4px 2px;
    }

    #pixel-price-table th:nth-child(1),
    #pixel-price-table td.price-cell {
        width: 27%;
        min-width: 40px;
    }

    #pixel-price-table th:nth-child(2),
    #pixel-price-table td:nth-child(2) {
        width: 35%;
        min-width: 40px;
    }

    #pixel-price-table th:nth-child(3),
    #pixel-price-table td:nth-child(3) {
        width: 38%;
        min-width: 50px;
    }
}

/* Pixel price table delta colors */
.delta-positive {
    color: #00ff80 !important;
    font-weight: 600 !important;
}

.delta-negative {
    color: #ff6464 !important;
    font-weight: 600 !important;
}

.delta-neutral {
    color: #00f2ea !important;
    font-weight: 500 !important;
}

/* Mobile responsive for pixel price table */
@media (max-width: 768px) {
    #pixel-price-table {
        font-size: 0.95rem;
    }

    #pixel-price-table th,
    #pixel-price-table td {
        padding: 10px 12px;
    }

    #pixel-price-table .price-cell {
        gap: 6px;
    }

    #pixel-price-table .inline-logo {
        width: 16px;
        height: 16px;
        margin-right: 4px;
    }
}

@media (max-width: 600px) {
    #pixel-price-table {
        font-size: 0.9rem;
    }

    #pixel-price-table th,
    #pixel-price-table td {
        padding: 8px 10px;
    }

    #pixel-price-table .price-cell {
        gap: 4px;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    #pixel-price-table .inline-logo {
        width: 14px;
        height: 14px;
        margin-right: 3px;
    }

    /* Make delta changes display on same line but smaller */
    #pixel-price-table .delta-positive,
    #pixel-price-table .delta-negative,
    #pixel-price-table .delta-neutral {
        font-size: 0.8em;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    #pixel-price-table {
        font-size: 0.85rem;
    }

    #pixel-price-table th,
    #pixel-price-table td {
        padding: 6px 8px;
    }

    #pixel-price-table .price-cell {
        gap: 3px;
    }

    #pixel-price-table .inline-logo {
        width: 12px;
        height: 12px;
        margin-right: 2px;
    }

    #pixel-price-table .delta-positive,
    #pixel-price-table .delta-negative,
    #pixel-price-table .delta-neutral {
        font-size: 0.75em;
        margin-left: 4px;
    }
}

/* Remove row hover/shine effect for pixel price table */
#pixel-price-table tr:hover,
#pixel-price-table tbody tr:hover,
#pixel-price-table tr:active,
#pixel-price-table tr:focus {
    background: inherit !important;
    box-shadow: none !important;
    filter: none !important;
}

.stat-row {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    justify-content: center;
}

.stat-row:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .container {
        max-width: 98vw;
        padding: 8px;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .stats-grid,
    .donate-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-row {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }
}

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

    .main-title {
        font-size: 1.5rem;
    }

    .stats-grid,
    .donate-grid {
        grid-template-columns: 1fr;
    }

    #google_translate_element {
        position: static;
        margin: 0 auto 20px auto;
        display: block;
        text-align: center;
    }

    .anime-sticker {
        width: 70px;
        bottom: 6px;
        right: 6px;
    }

    #px-stats {
        font-size: 1em;
        text-align: left;
        padding-left: 8px;
    }

    #px-stats span {
        display: block;
        margin-bottom: 4px;
    }

    #px-stats .px-divider {
        display: none;
    }
}

/* Các style khác giữ nguyên */
.subtitle,
footer p,
.qa-item p,
.qa-item li {
    color: var(--secondary-color);
}

.inline-logo {
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    margin-left: 0.2em;
    object-fit: contain;
}

.warning-text {
    color: #ffae00;
    font-style: italic;
    margin-top: 10px;
    font-size: 0.95em;
}

#google_translate_element {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 100;
    text-align: right;
}

.goog-te-gadget-simple {
    background: rgba(16, 22, 32, 0.85) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 5px 12px !important;
    color: #00f2ea !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.18);
    transition: background 0.2s, color 0.2s;
    margin-top: 0 !important;
}

.goog-te-gadget-simple:hover {
    background: rgba(0, 242, 234, 0.18) !important;
    color: #fff !important;
}

.goog-te-gadget-simple span,
.goog-te-gadget-simple a {
    color: #00f2ea !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.goog-te-gadget-icon {
    display: none !important;
}

.goog-te-menu-value {
    color: #00f2ea !important;
    font-weight: 600 !important;
}

.goog-te-arrow {
    filter: invert(1) brightness(2);
    margin-left: 4px;
}

@media (max-width: 600px) {
    #google_translate_element {
        top: 8px;
        right: 8px;
    }

    .goog-te-gadget-simple {
        font-size: 0.95rem !important;
        padding: 4px 8px !important;
    }
}

.donate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.donate-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.1);
    /* Reduced opacity for donate items */
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 1rem;
    color: var(--primary-color);
    word-break: break-all;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.28);
}

.donate-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff1;
}

.donate-item a {
    color: #00f2ea;
    text-decoration: underline;
    font-weight: 500;
}

.donate-item a:hover {
    color: #40e0ff;
}

.qa-item h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.qa-item p,
.qa-item li {
    color: var(--secondary-color);
    font-size: 1rem;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: var(--secondary-color);
    font-size: 1rem;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.stats-grid-custom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 18px;
    margin-bottom: 30px;
}

.stats-grid-custom .stat-card:nth-child(1) {
    grid-row: 1;
    grid-column: 1;
}

.stats-grid-custom .stat-card:nth-child(2) {
    grid-row: 1;
    grid-column: 2;
}

.stats-grid-custom .stat-card:nth-child(3) {
    grid-row: 1;
    grid-column: 3;
}

.stats-grid-custom .stat-card:nth-child(4) {
    grid-row: 2;
    grid-column: 1;
}

.stats-grid-custom .stat-card:nth-child(5) {
    grid-row: 2;
    grid-column: 2;
}

@media (max-width: 900px) {
    .stats-grid-custom {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .stats-grid-custom .stat-card {
        width: 100% !important;
        margin: 0 !important;
        display: block;
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

.most-expensive a {
    color: #00f2ea;
    text-decoration: underline;
    font-weight: 500;
}

.most-expensive a:hover {
    color: #40e0ff;
}

.qa-item a {
    color: #00f2ea;
    text-decoration: underline;
    font-weight: 500;
}

.qa-item a:hover {
    color: #40e0ff;
}

@media (max-width: 900px) {
    .donate-grid {
        grid-template-columns: 1fr;
    }
}

.excel-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    margin: 18px 0 8px 0;
    font-size: 0.98rem;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.18);
}

.excel-table th {
    background: rgba(0, 242, 234, 0.13);
    color: #00f2ea;
    font-weight: 700;
    padding: 10px 8px;
    text-align: left;
    border-bottom: 2px solid var(--accent-color);
    font-size: 1.02rem;
}

.excel-table td {
    padding: 9px 8px;
    border-bottom: 1px solid rgba(0, 242, 234, 0.08);
    color: #fff;
    background: rgba(16, 22, 32, 0.18);
    font-weight: 500;
    text-align: right;
}

.excel-table td:first-child,
.excel-table th:first-child {
    border-left: none;
    text-align: left;
}

.excel-table tr:last-child td {
    border-bottom: none;
}

.excel-table tr:hover td {
    background: rgba(0, 242, 234, 0.08);
    transition: background 0.2s;
}

@media (max-width: 900px) {
    .excel-table {
        font-size: 0.92rem;
    }
}

@media (max-width: 600px) {
    .excel-table {
        font-size: 0.85rem;
    }
}

/* Màu nhóm cột cho bảng thưởng PX */
.col-group-green th,
.col-group-green td {
    background: rgba(0, 255, 128, 0.13) !important;
    color: #00ff80 !important;
}

.col-group-purple th,
.col-group-purple td {
    background: rgba(128, 64, 255, 0.13) !important;
    color: #b48cff !important;
}

.col-group-orange th,
.col-group-orange td {
    background: rgba(255, 180, 0, 0.13) !important;
    color: #ffae00 !important;
}

.col-group-yellow th,
.col-group-yellow td {
    background: rgba(255, 255, 0, 0.10) !important;
    color: #ffe066 !important;
}

.col-group-red th,
.col-group-red td {
    background: rgba(255, 64, 64, 0.13) !important;
    color: #ff6464 !important;
}

/* Border dọc phân nhóm */
.excel-table th.group-border,
.excel-table td.group-border {
    border-left: 2.5px solid #00f2ea !important;
}

/* Giữ style tổng thể tối */
.excel-table th,
.excel-table td {
    background-clip: padding-box;
}

.live-emoji {
    font-size: 1.2em;
    vertical-align: middle;
    margin-right: 6px;
    animation: live-blink 1s infinite alternate;
}

@keyframes live-blink {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

.live-label {
    color: #ff2d2d;
    font-weight: bold;
    letter-spacing: 1px;
    margin-right: 8px;
}

.delta-up {
    color: #00ff80;
    /* Green for increase */
    font-weight: bold;
    margin-left: 8px;
    font-size: 0.98em;
    display: inline-block;
    /* NOT on new line */
    vertical-align: middle;
    margin-top: 0;
}

.delta-down {
    color: #ff6464;
    /* Red for decrease */
    font-weight: bold;
    margin-left: 8px;
    font-size: 0.98em;
    display: inline-block;
    /* NOT on new line */
    vertical-align: middle;
    margin-top: 0;
}

.delta-neutral {
    color: #a0a0a0 !important;
    font-weight: 500 !important;
    margin-left: 8px;
    font-size: 0.98em;
    display: inline-block;
    /* NOT on new line */
    vertical-align: middle;
    margin-top: 0;
}

.delta-arrow {
    font-size: 1em;
    vertical-align: middle;
    margin-right: 2px;
}

.chart-bg {
    position: relative;
    border-radius: 10px;
    margin-bottom: 18px;
    background: url('images/graphbg.jpg') center center / cover no-repeat;
    padding: 10px;
    border: 1px solid var(--border-color);
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.chart-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 24, 24, 0.85);
    border-radius: 10px;
    z-index: 0;
    pointer-events: none;
}

.chart-bg canvas {
    position: relative;
    z-index: 1;
    background-color: transparent !important;
    max-width: 100%;
    width: 100% !important;
    height: 220px !important;
    min-height: 100px;
    max-height: 260px;
    display: block;
    pointer-events: auto;
}

.chart-bg-2 {
    position: relative;
    border-radius: 10px;
    margin-bottom: 18px;
    background: url('images/graphbg.jpg') center center / cover no-repeat;
    padding: 10px;
    border: 1px solid var(--border-color);
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.chart-bg-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 24, 24, 0.85);
    border-radius: 10px;
    z-index: 0;
    pointer-events: none;
}

.chart-bg-2 canvas {
    position: relative;
    z-index: 1;
    background-color: transparent !important;
    max-width: 100%;
    width: 100% !important;
    height: 220px !important;
    min-height: 100px;
    max-height: 260px;
    display: block;
    pointer-events: auto;
}

@media (max-width: 600px) {
    .chart-bg {
        padding: 6px 2px 10px 2px;
    }

    .chart-bg canvas {
        height: 180px !important;
        min-height: 120px;
        max-height: 220px;
    }

    .chart-bg-2 {
        padding: 6px 2px 10px 2px;
    }

    .chart-bg-2 canvas {
        height: 180px !important;
        min-height: 120px;
        max-height: 220px;
    }
}

.chart-filter button {
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 2px 2px 6px 2px;
}

.chart-filter-2 button {
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 2px 2px 6px 2px;
}

@media (max-width: 600px) {
    .chart-filter button {
        font-size: 0.95rem;
        padding: 4px 7px;
    }

    .chart-filter-2 button {
        font-size: 0.95rem;
        padding: 4px 7px;
    }
}

.px-total {
    color: #2196f3;
}

.px-minted {
    color: #ff9800;
}

.px-remain {
    color: #ff5252;
}

.highlight-donate .donate-highlight {
    color: #ff5252;
    font-weight: 700;
    background: linear-gradient(90deg, #fff2, #ff5252aa 80%);
    padding: 2px 6px;
    border-radius: 5px;
    animation: donate-blink 1.2s infinite alternate;
}

@keyframes donate-blink {
    0% {
        background: linear-gradient(90deg, #fff2, #ff5252aa 80%);
    }

    100% {
        background: linear-gradient(90deg, #ff5252aa 20%, #fff2);
    }
}

.scroll-down-anim {
    display: inline-block;
    margin-top: 6px;
    font-size: 1.08em;
    color: #00f2ea;
    font-weight: 600;
    letter-spacing: 1px;
    animation: scroll-down-bounce 1.2s infinite;
}

@keyframes scroll-down-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

.arrow-down {
    font-size: 1.3em;
    animation: arrow-bounce 1.2s infinite;
}

@keyframes arrow-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

.share-highlight {
    color: #00f2ea;
    font-weight: 600;
    margin-top: 4px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.tournament-link {
    color: #fff !important;
    font-weight: 700;
    text-shadow: 0 2px 8px #000, 0 0 2px #fff;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    transition: text-shadow 0.2s;
}

.tournament-link:hover {
    text-shadow: 0 0 12px #fff, 0 0 8px #000;
    filter: brightness(1.2);
}

.notpixel-link-logo {
    width: 1.2em;
    height: 1.2em;
    vertical-align: -0.2em;
    margin: 0 2px 0 2px;
    display: inline-block;
}

/* Preset filter buttons for charts */
.preset-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.filter-btn {
    background-color: #2a2a3e;
    color: #c0c0c0;
    border: 1px solid rgba(0, 242, 234, 0.2);
    border-radius: 15px;
    padding: 6px 14px;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background-color: rgba(0, 242, 234, 0.15);
    color: #fff;
    border-color: var(--accent-color);
}

.filter-btn.active {
    background-color: var(--accent-color);
    color: #10101a;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(0, 242, 234, 0.5);
}

/* Fix tràn viền địa chỉ TON trong #buyprice */
#buyprice span {
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
}

/* Fix khối PX Tradable và PX Locked bị lệch nhau trên mobile */

/* Đảm bảo khối PX Tradable và PX Locked đều nhau trên mọi thiết bị */
#px-available-locked-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    margin-bottom: 18px;
}

#px-available-locked-row>span {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.15em;
    font-weight: 600;
    margin: 0;
}

/* PX Tradable màu xanh */
.px-tradable {
    background: linear-gradient(90deg, #00f2ea 80%, #00c3ff 100%);
    color: #004d6b;
    border: 2px solid #00f2ea;
}

/* PX Locked màu đỏ */
.px-locked {
    background: linear-gradient(90deg, #ffb3b3 80%, #ff5252 100%);
    color: #a80000;
    border: 2px solid #ff5252;
}

@media (max-width: 600px) {
    #px-available-locked-row {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        align-items: stretch !important;
    }

    #px-available-locked-row>span {
        width: 100% !important;
        margin-bottom: 0 !important;
        border-radius: 14px !important;
        padding: 12px 12px !important;
        font-size: 1em !important;
    }
}