.usercabinet-nnclub-tokens .nnclub-user-tokens {
    padding-bottom: 48px;
}

.nnclub-user-tokens__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.nnclub-user-tokens__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #222;
    line-height: 1.2;
}

.nnclub-user-tokens__balance {
    font-size: 16px;
    color: #444;
    white-space: nowrap;
}

.nnclub-user-tokens__balance-num {
    color: #c6272c;
    font-weight: 700;
    margin: 0 4px;
}

.nnclub-user-tokens__balance-label,
.nnclub-user-tokens__balance-suffix {
    font-weight: 400;
}

.nnclub-user-tokens__block {
    margin-bottom: 40px;
}

.nnclub-user-tokens__table-shell {
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    background: #fafafa;
    padding: 4px 4px 0;
}

.nnclub-user-tokens__table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 6px 6px 0 0;
}

.nnclub-user-tokens__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.nnclub-user-tokens__table th,
.nnclub-user-tokens__table td {
    padding: 14px 12px;
    border-bottom: 1px solid #ebebeb;
    text-align: left;
    vertical-align: middle;
}

.nnclub-user-tokens__table thead th {
    background: #f7f7f7;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555;
}

.nnclub-user-tokens__table tbody tr:last-child td {
    border-bottom: none;
}

.nnclub-user-tokens__th-num {
    white-space: nowrap;
    width: 56px;
}

.nnclub-user-tokens__th-inner {
    margin-right: 4px;
}

.nnclub-user-tokens__sort-ico {
    display: inline-block;
    vertical-align: middle;
    width: 12px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='14' viewBox='0 0 12 14'%3E%3Cpath fill='%23999' d='M6 0l3 4H3l3-4zM6 14l-3-4h6l-3 4z'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.75;
}

.nnclub-user-tokens__td-num {
    font-weight: 600;
    color: #333;
}

.nnclub-user-tokens__td-code {
    white-space: nowrap;
}

.nnclub-user-tokens__code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    letter-spacing: 0.05em;
    margin-right: 8px;
}

.nnclub-user-tokens__copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    padding: 4px;
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    border-radius: 4px;
    line-height: 0;
    transition: color 0.15s;
}

.nnclub-user-tokens__copy-btn:hover {
    color: #c6272c;
}

.nnclub-user-tokens__activated {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    background: #ececec;
    color: #777;
    font-size: 13px;
}

.nnclub-user-tokens__empty {
    color: #777;
    text-align: center;
    padding: 28px 14px !important;
}

.nnclub-user-tokens__table-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px 14px;
    font-size: 14px;
    color: #666;
}

.nnclub-user-tokens__shown {
    flex: 1 1 auto;
    min-width: 140px;
}

.nnclub-user-tokens__pagebar {
    flex: 0 1 auto;
}

.nnclub-user-tokens__pagebar .pagebar {
    margin: 0;
}

.nnclub-user-tokens__perpage-placeholder {
    flex: 1 1 160px;
    min-height: 1px;
}

.nnclub-user-tokens__subtitle {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #222;
}

.nnclub-code-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.nnclub-code-card {
    flex: 1 1;
    min-width: 150px;
    max-width: calc(50% - 8px);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px 14px 16px;
    background: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nnclub-code-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.nnclub-code-card__name {
    font-weight: 700;
    font-size: 16px;
    color: #222;
    line-height: 1.25;
}

.nnclub-code-card__mult {
    font-weight: 700;
    font-size: 14px;
    color: #c6272c;
    white-space: nowrap;
}

.nnclub-code-card__desc {
    font-size: 13px;
    color: #666;
    line-height: 1.45;
    margin: 0 0 14px;
    flex: 1;
}

.nnclub-code-card__buy {
    display: block;
    text-align: center;
    padding: 10px 12px;
    border: 2px solid #c6272c;
    border-radius: 4px;
    color: #c6272c;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.nnclub-code-card__buy:hover {
    background: #c6272c;
    color: #fff;
}

.nnclub-user-tokens__no-types {
    color: #777;
    margin: 0;
    width: 100%;
}

.nnclub-user-tokens__faq {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #eee;
}

.nnclub-user-tokens__faq-col {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nnclub-user-tokens__faq-item {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 0 14px;
    background: #fff;
}

.nnclub-user-tokens__faq-item summary {
    cursor: pointer;
    padding: 14px 28px 14px 0;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    list-style: none;
    position: relative;
}

.nnclub-user-tokens__faq-item summary::-webkit-details-marker {
    display: none;
}

.nnclub-user-tokens__faq-item summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    color: #c6272c;
}

.nnclub-user-tokens__faq-item[open] summary::after {
    content: "−";
}

.nnclub-user-tokens__faq-body {
    padding: 0 0 14px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.nnclub-user-tokens__legal {
    margin-top: 32px;
    padding-top: 20px;
    font-size: 14px;
    text-align: center;
}

.nnclub-user-tokens__legal a {
    color: #888;
    text-decoration: underline;
}

.nnclub-user-tokens__legal a:hover {
    color: #c6272c;
}

.nnclub-user-tokens__legal-sep {
    margin: 0 10px;
    color: #ccc;
}

@media (max-width: 1100px) {
    .nnclub-code-card {
        flex: 1 1 calc(33.333% - 12px);
        max-width: calc(50% - 8px);
    }
}

@media (max-width: 768px) {
    .nnclub-user-tokens__toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nnclub-code-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .nnclub-user-tokens__faq {
        flex-direction: column;
    }

    .nnclub-user-tokens__table-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .nnclub-user-tokens__perpage-placeholder {
        display: none;
    }
}
