:root {
    --bg: #0b1020;
    --panel: #111833;
    --muted: #7d8fb3;
    --text: #e8ecf8;
    --accent: #29d391;
    --accent-2: #7cf1c2;
    --warning: #ffd166;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .02);
    --ring: 0 0 0 3px rgba(41, 211, 145, .25);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%
}

a:link,
a:visited,
a:hover {
    text-decoration: none;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: linear-gradient(to right, #0a0e1a, #162041);
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    /* padding: 0 20px; */
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
}


/* Responsive layout */

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .header-column {
        position: relative !important;
        top: 0 !important;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 20px auto;
        /* padding: 0 15px; */
        gap: 20px;
    }
    .header-column {
        padding: 20px;
        border-radius: 16px;
        position: relative;
        top: auto;
    }
}


/* Responsive cho header */

@media (max-width: 768px) {
    /* Header responsive */
    header {
        /* gap: 16px; */
    }
    /* Navigation menu responsive */
    .navigation-menu {
        margin: 16px 0;
        padding: 12px;
    }
    .nav-item {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    .nav-item i {
        font-size: 14px;
        width: 18px;
    }
    header .group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    header .group-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    header .group-sub {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    /* Actions responsive */
    header .actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    header .search {
        width: 100%;
        order: 1;
    }
    header .search input {
        width: 100%;
        font-size: 14px;
    }
    header .wallet-pill {
        order: 2;
        text-align: center;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }
    header .cta {
        order: 3;
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
    }
    header .logout-link {
        order: 4;
        text-align: center;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }
    /* Search responsive */
    .search-container {
        margin-bottom: 20px;
        padding: 0 8px;
    }
    .search-container .search input {
        font-size: 16px;
        /* Tránh zoom trên iOS */
        padding: 10px 36px 10px 12px;
    }
    /* Tabs responsive */
    .tabs {
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
    }
    .tabs .tab {
        white-space: nowrap;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        min-width: auto;
    }
}


/* Responsive cho keys section */

@media (max-width: 768px) {
    /* Keys section responsive */
    #keys-section {
        margin: 1rem 0;
    }
    /* Bảng responsive trong danh sách key */
    .dskeydamua .table {
        font-size: 0.85rem;
    }
    .dskeydamua .table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    .dskeydamua .table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    .dskeydamua .key-in-row {
        font-size: 0.8rem;
        padding: 4px 8px;
        word-break: break-all;
    }
    .dskeydamua .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    .dskeydamua .btn-copy-key-row {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 35px;
    }
    #keys-section .group-header {
        padding: 1rem;
    }
    #keys-section .group-title {
        font-size: 1.2rem;
    }
    #keys-section .group-sub {
        font-size: 0.85rem;
    }
    /* Keys actions responsive */
    .keys-actions {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    .keys-actions .d-flex {
        flex-direction: column;
        gap: 0.75rem;
    }
    .keys-actions .btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
    }
    /* Keys groups responsive */
    .keys-group {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    .keys-group .group-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    .keys-group .group-title {
        font-size: 1.1rem;
    }
    .keys-group .group-sub {
        font-size: 0.8rem;
    }
    /* Table responsive */
    .table-responsive {
        border-radius: 8px;
        overflow: hidden;
    }
    .table-dark th,
    .table-dark td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    .table-dark th {
        font-size: 0.8rem;
        text-transform: none;
        letter-spacing: normal;
    }
    /* Key display responsive */
    .key-in-row {
        font-size: 0.8rem;
        padding: 4px 8px;
        word-break: break-all;
    }
    /* Badge responsive */
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    /* Copy button responsive */
    .btn-copy-key-row {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 35px;
    }
    /* Nutxuly responsive */
    .nutxuly .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    .nav-tabs {
        margin-bottom: 1.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
        min-width: auto;
    }
    .nav-tabs .nav-link.active {
        font-size: 0.9rem;
    }
}


/* Responsive cho quantity input */

@media (max-width: 768px) {
    .quantity-input {
        font-size: 16px;
        /* Tránh zoom trên iOS */
        padding: 0.5rem;
        /* width: 70px; */
    }
    .quantity-input::after,
    .quantity-input::before {
        font-size: 8px;
        right: 8px;
    }
    /* .quantity-input {
        padding-right: 30px;
    } */
}


/* Header styling cho cột trái */

.header-column {
    position: sticky;
    top: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.header-column .logohead img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

header {
    display: flex;
    flex-direction: column;
    /* gap: 24px; */
    margin-bottom: 0;
}

.title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2cf0a9, #1cbf82 60%, #0f7a54);
    box-shadow: 0 8px 24px rgba(44, 240, 169, .35);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #0b1020
}

h1 {
    font-size: 28px;
    margin: 0
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.search {
    position: relative
}

.search input {
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--text);
    padding: 12px 40px 12px 14px;
    border-radius: 12px;
    outline: none;
    transition: .2s border-color, .2s box-shadow;
    box-sizing: border-box;
}

.search input:focus {
    border-color: var(--accent);
    box-shadow: var(--ring)
}

.search svg {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .7
}

.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0 22px
}

.tab {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .2px;
    transition: .2s background, .2s transform
}

.tab:hover {
    transform: translateY(-1px)
}

.tab.active {
    background: linear-gradient(180deg, rgba(124, 241, 194, .14), rgba(124, 241, 194, .06));
    border-color: rgba(41, 211, 145, .45)
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px
}

@media(min-width:720px) {
    .grid {
        grid-template-columns: 1fr 1fr
    }
}

.group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 10px 18px
}

.group-title {
    font-weight: 800;
    letter-spacing: .3px
}

.group-sub {
    color: var(--muted);
    font-size: 13px;
    margin: 15px 0;
}

.items {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    /* padding: 12px */
}

.card {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(9, 12, 25, .6);
    border: 1px solid rgba(255, 255, 255, .06);
    transition: .25s transform, .25s border-color, .25s box-shadow;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 241, 194, .45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35)
}

.info {
    display: flex;
    gap: 12px;
    align-items: center
}

.badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    font-weight: 700;
    font-size: 12px
}

.avail {
    background: rgba(41, 211, 145, .15);
    border-color: rgba(41, 211, 145, .25);
    color: #caffec
}

.desc {
    font-size: 13px;
    color: var(--muted);
    margin: 6px 0 0 5px;
}

.price-cta {
    display: flex;
    align-items: center;
    gap: 10px
}

.price {
    background: linear-gradient(180deg, #31e3a5, #1cc987);
    color: #072c1e;
    font-weight: 800;
    padding: 10px 16px;
    border-radius: 12px;
    letter-spacing: .3px
}

.cta {
    background: linear-gradient(135deg, #29d391, #1fb879);
    color: #051b14;
    font-weight: 700;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(41, 211, 145, 0.3);
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(41, 211, 145, 0.4);
}

.cta.primary {
    background: linear-gradient(135deg, #29d391, #1fb879);
    color: #051b14;
    border: none
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-top: 1px dashed rgba(255, 255, 255, .06);
    color: var(--muted);
    font-size: 13px
}

.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px
}

.switch input {
    appearance: none;
    width: 42px;
    height: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .12);
    outline: none;
    position: relative;
    transition: .2s
}

.switch input::after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: .25s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35)
}

.switch input:checked {
    background: linear-gradient(135deg, #29d391, #1db97a)
}

.switch input:checked::after {
    left: 21px
}

.pill {
    padding: 6px 10px;
    border: 1px dashed rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px
}

.wallet-pill {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: #fff;
}

.login-btn {
    background: linear-gradient(180deg, #fff, #efefef);
    color: #000;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700
}

a.logout-link {
    color: var(--muted);
    text-decoration: none;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

a.logout-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}


/* CSS cho keys section */

.nav-tabs {
    border-bottom: 0 !important;
    margin-bottom: -23px !important;
}

.nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.6);
    border: none;
    background: transparent;
    border-radius: 8px 8px 0 0;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-right: 4px;
}

.nav-tabs .nav-link.active {
    color: #7cf1c2;
    background: linear-gradient(135deg, rgba(124, 241, 194, 0.15), rgba(124, 241, 194, 0.05));
    border-bottom: 2px solid #7cf1c2;
    font-weight: 600;
}

.nav-tabs .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}


/* CSS cho bảng keys */

.table-dark {
    background: transparent;
    color: #fff;
}

.table-dark th {
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
}

.table-dark td {
    border-color: rgba(255, 255, 255, 0.06);
    padding: 1rem 0.75rem;
    vertical-align: middle;
    color: #fff;
    background: transparent;
}

.table-striped>tbody>tr:nth-of-type(odd)>td {
    background-color: rgba(255, 255, 255, 0.02);
}

.table-striped>tbody>tr:hover>td {
    background-color: rgba(124, 241, 194, 0.05) !important;
    transition: background-color 0.2s ease;
}


/* CSS cho keys groups */

.keys-group {
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.keys-group .group-header {
    background: rgba(255, 255, 255, .03);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 1rem 1.5rem;
    margin-bottom: 0;
}

.keys-group .group-title {
    color: #7cf1c2;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.keys-group .group-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0;
}


/* CSS cho keys actions */

.nutxuly {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.nutxuly .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.nutxuly .btn-outline-primary {
    border-color: #7cf1c2;
    color: #7cf1c2;
    background: transparent;
}

.nutxuly .btn-outline-primary:hover {
    background: #7cf1c2;
    color: #051b14;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 241, 194, 0.3);
}


/* CSS cho nút copy */

.btn-copy-key-row {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: all 0.2s ease;
    min-width: 40px;
}

.btn-copy-key-row:hover {
    background: rgba(124, 241, 194, 0.2);
    border-color: rgba(124, 241, 194, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(124, 241, 194, 0.2);
}

.btn-copy-key-row.btn-success {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}


/* CSS cho key trong hàng */

.key-in-row {
    /* background: rgba(255, 255, 255, 0.08);  */
    /* padding: 6px 10px;  */
    /* border-radius: 8px;  */
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

.key-in-row:hover {
    background: rgba(124, 241, 194, 0.1);
    border-color: rgba(124, 241, 194, 0.3);
    transform: translateX(2px);
    color: #7cf1c2;
}

.key-in-row:last-child {
    margin-bottom: 0;
}


/* CSS cho badge ngày còn */

.badge.bg-success {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
    color: #fff !important;
    border: none;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 6px;
}


/* CSS cho table responsive */

.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}


/* CSS cho table container */

.table-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}


/* CSS cho bảng trong danh sách key - Dark theme */

.dskeydamua .table {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.dskeydamua .table thead th {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.12);
    color: #7cf1c2;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    border-bottom: 2px solid rgba(124, 241, 194, 0.3);
}

.dskeydamua .table tbody td {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.dskeydamua .table tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02);
}

.dskeydamua .table tbody tr:hover {
    background-color: rgba(124, 241, 194, 0.05) !important;
    transition: background-color 0.2s ease;
}

.dskeydamua .table tbody tr:hover td {
    color: #7cf1c2;
}


/* CSS cho code/key trong bảng */

.dskeydamua .key-in-row {
    /* background: rgba(255, 255, 255, 0.08);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1); */
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

.dskeydamua .key-in-row:hover {
    background: rgba(124, 241, 194, 0.1);
    border-color: rgba(124, 241, 194, 0.3);
    transform: translateX(2px);
    color: #7cf1c2;
}

.dskeydamua .key-in-row:last-child {
    margin-bottom: 0;
}


/* CSS cho badge trong bảng */

.dskeydamua .badge.bg-success {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
    color: #fff !important;
    border: none;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 6px;
}

.dskeydamua .badge.bg-info {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0) !important;
    color: #000 !important;
    border: none;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 6px;
}

.dskeydamua .badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
    color: #fff !important;
    border: none;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 6px;
}


/* CSS cho nút copy trong bảng */

.dskeydamua .btn-copy-key-row {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: all 0.2s ease;
    min-width: 40px;
}

.dskeydamua .btn-copy-key-row:hover {
    background: rgba(124, 241, 194, 0.2);
    border-color: rgba(124, 241, 194, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(124, 241, 194, 0.2);
}

.dskeydamua .btn-copy-key-row.btn-success {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}


/* CSS cho quantity input */

.quantity-input {
    /* width: 70px !important; */
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quantity-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #7cf1c2;
    box-shadow: 0 0 0 3px rgba(124, 241, 194, 0.2);
    outline: none;
}

.quantity-input:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}


/* Ẩn spinner buttons mặc định */

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}


/* Tạo spinner buttons tùy chỉnh */

.quantity-input {
    position: relative;
}


/* Mũi tên lên */

.quantity-input::after {
    content: '▲';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    pointer-events: none;
    transition: all 0.2s ease;
    line-height: 1;
    z-index: 1;
}


/* Mũi tên xuống */

.quantity-input::before {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    pointer-events: none;
    margin-top: 12px;
    transition: all 0.2s ease;
    line-height: 1;
    z-index: 1;
}


/* Hiệu ứng hover cho mũi tên */

.quantity-input:hover::after {
    color: rgba(124, 241, 194, 0.6);
    /* Màu xanh lá nhạt */
    transform: translateY(-50%) scale(1.2);
}

.quantity-input:hover::before {
    color: rgba(124, 241, 194, 0.6);
    /* Màu xanh lá nhạt */
    transform: translateY(-50%) scale(1.2);
}


/* Hiệu ứng hover cho toàn bộ input */

.quantity-input:hover {
    border-color: rgba(124, 241, 194, 0.4);
    box-shadow: 0 0 0 2px rgba(124, 241, 194, 0.1);
}


/* Hiệu ứng hover cho số trong input */

.quantity-input:hover {
    color: #7cf1c2 !important;
    /* Số chuyển thành màu xanh lá nổi bật */
    font-weight: 600;
}


/* Thêm padding phải để tránh text bị che */


/* .quantity-input {
    padding-right: 35px;
} */


/* CSS cho keys groups */

.keys-group {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.keys-group:last-child {
    margin-bottom: 0;
}

.keys-group .group-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.keys-group .group-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.keys-group .group-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 400;
}


/* CSS cho keys actions */

.keys-actions {
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(124, 241, 194, 0.08), rgba(124, 241, 194, 0.03));
    border-radius: 12px;
    border: 1px solid rgba(124, 241, 194, 0.2);
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(124, 241, 194, 0.1);
}

.keys-actions .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.keys-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chiacot {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.chiacot .sanpham,
.chiacot .group {
    flex: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}


/* Navigation menu styling */

.navigation-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #7cf1c2;
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(124, 241, 194, 0.15), rgba(124, 241, 194, 0.05));
    border-color: rgba(124, 241, 194, 0.3);
    color: #7cf1c2;
    font-weight: 600;
}

.nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}


/* Content column styling */

.content-column {
    /* min-height: 100vh;
     */
    overflow: visible;
}


/* Search container styling */

.search-container {
    margin-bottom: 24px;
    padding: 0 12px;
}

.search-container .search {
    position: relative;
    max-width: 500px;
}

.search-container .search input {
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--text);
    padding: 12px 40px 12px 14px;
    border-radius: 12px;
    outline: none;
    transition: .2s border-color, .2s box-shadow;
    box-sizing: border-box;
    font-size: 14px;
}

.search-container .search input:focus {
    border-color: var(--accent);
    box-shadow: var(--ring);
    background: rgba(255, 255, 255, .06);
}

.search-container .search svg {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .7;
    color: var(--text);
}

.search-container .search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}


/* Modal styling cho khớp với theme */

.modal-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02);
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
}

.modal-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
}

.btn-close {
    filter: invert(1);
    opacity: 0.7;
}

.btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
    background: transparent;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02);
    border-radius: 0 0 20px 20px;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
}


/* Form controls */

.form-label {
    color: #fff;
    font-weight: 600;
}

.form-control {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, .06);
    border-color: #7cf1c2;
    box-shadow: 0 0 0 0.2rem rgba(124, 241, 194, 0.25);
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group-text {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    border-radius: 12px 0 0 12px;
    font-weight: 600;
}


/* Badge styling */

.badge.bg-info {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0) !important;
    color: #000 !important;
    border: none;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
}

.badge.bg-success {
    background: linear-gradient(135deg, #198754, #146c43) !important;
    color: #fff !important;
    border: none;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    color: #000 !important;
    border: none;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
}


/* Button styling */

.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    border: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .18);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #29d391, #1fb879);
    color: #051b14;
    box-shadow: 0 4px 12px rgba(41, 211, 145, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #2ee89e, #24c884);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(41, 211, 145, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7, #0a58ca);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4);
}


/* Text colors */

.text-success {
    color: #7cf1c2 !important;
}

.text-danger {
    color: #ff6b6b !important;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}


/* Spinner */

.spinner-border.text-success {
    color: #7cf1c2 !important;
}


/* Alert */

.alert-danger {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border-radius: 12px;
}


/* Telegram info styling */

#telegram-info-row {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
    line-height: 1.4;
    min-height: 20px;
    display: block;
    visibility: visible;
    opacity: 1;
}

#telegram-info-row a {
    color: #7cf1c2;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

#telegram-info-row a:hover {
    color: #29d391;
    text-decoration: underline;
}

#telegram-info-row b {
    color: #fff;
    font-weight: 600;
}

#telegram-info-row .text-danger {
    color: #ff6b6b !important;
}


/* Telegram info responsive */


/* .an600 {
    display: block;
} */

td {
    color: white !important;
    border: 0 !important;
    background: transparent !important;
}

th:not(:last-child) {
    min-width: 116px;
}

.hien600 {
    display: none;
}

footer {
    display: flex;
    align-items: center;
    padding: 12px 16px 30px 16px;
    color: #eee;
    font-size: 14px;
    gap: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

footer a {
    color: #eee;
}

footer p {
    flex: 1 0 200px;
    margin: 0;
    text-align: center;
}

@media (max-width: 768px) {
    #telegram-info-row {
        font-size: 0.85rem;
        margin-top: 6px;
    }
    #telegram-info-row a {
        display: inline-block;
        margin-top: 2px;
    }
    .card {
        justify-content: center;
    }
    .badge.tensp {
        padding: 6px;
        background: none;
        border: none;
        font-size: 16px;
    }
    .ttsp {
        flex: 100%;
        display: flex;
        flex-direction: column;
        align-content: center;
        align-items: center;
    }
    .items {
        padding: 0;
    }
    .nutxuly {
        padding: 0 !important;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .an600 {
        display: none;
    }
    .hien600 {
        display: block;
        font-size: 13px;
        color: gray;
        margin: 10px 0 0 7px;
    }
    th:not(:last-child) {
        min-width: auto;
    }
}