/* Account Tables */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 12px;
    background: #1e1e3e;
    border: 2px solid #2e2e5e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.accounts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.accounts-table thead {
    background: rgba(30, 30, 62, 0.8);
    border-bottom: 2px solid #2e2e5e;
}

.accounts-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    color: #64b5f6;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.accounts-table th:first-child {
    width: 25%;
}

.accounts-table th:nth-child(2) {
    width: 55%;
}

.accounts-table th:last-child {
    width: 20%;
    text-align: right;
}

.accounts-table tbody tr {
    border-bottom: 1px solid rgba(46, 46, 94, 0.5);
    transition: background-color 0.2s ease;
}

.accounts-table tbody tr:hover {
    background: rgba(46, 46, 94, 0.4);
}

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

.accounts-table td {
    padding: 10px 12px;
    color: #e5e5e5;
    vertical-align: middle;
    line-height: 1.4;
}

.accounts-table td:first-child {
    font-weight: 600;
    color: #ffffff;
}

.accounts-table td:nth-child(2) {
    font-size: 0.85rem;
    color: #b3b3b3;
}

.accounts-table td .show-details-link {
    color: #b3b3b3 !important;
    text-decoration: none;
    font-weight: 400 !important;
    font-size: 0.85rem !important;
    transition: color 0.2s ease;
    display: inline;
    margin: 0;
    padding: 0;
    width: auto;
    min-height: auto;
    text-align: left;
}

#habbo-content .accounts-table td .show-details-link {
    color: #b3b3b3 !important;
}

.accounts-table td .show-details-link:hover {
    color: #ffc107 !important;
    text-decoration: underline;
}

#habbo-content .accounts-table td .show-details-link:hover {
    color: #ffc107 !important;
}

.accounts-table td:last-child {
    font-weight: 700;
    color: #4caf50;
    text-align: right;
    white-space: nowrap;
}

/* Platform-specific table styling */
#habbo-content .accounts-table th {
    color: #ffc107;
}

#habbo-content .table-container {
    border-color: #ffc107;
}

#habbo-content .accounts-table tbody tr:hover {
    background: rgba(255, 193, 7, 0.1);
}

#runescape-content .accounts-table th {
    color: #ff5722;
}

#runescape-content .table-container {
    border-color: #ff5722;
}

#runescape-content .accounts-table tbody tr:hover {
    background: rgba(255, 87, 34, 0.1);
}

#steam-content .accounts-table th {
    color: #757575;
}

#steam-content .table-container {
    border-color: #757575;
}

#steam-content .accounts-table tbody tr:hover {
    background: rgba(117, 117, 117, 0.1);
}

#opensea-content .accounts-table th {
    color: #2081E2;
}

#opensea-content .table-container {
    border-color: #2081E2;
}

#opensea-content .accounts-table tbody tr:hover {
    background: rgba(32, 129, 226, 0.1);
}

/* Section header with action button */
.section-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header-with-action .section-title {
    margin-bottom: 0;
}

/* Clipboard Button */
.clipboard-btn {
    background: #5865f2;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
    font-family: 'Inter', sans-serif;
}

.clipboard-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.clipboard-btn:active {
    transform: translateY(0);
}

.clipboard-btn i {
    font-size: 0.9rem;
}

.clipboard-btn.copied {
    background: #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.clipboard-btn.copied:hover {
    background: #43a047;
}

.premium-actions {
    margin: 20px 0;
    text-align: center;
}

/* Sale Price Styling */
.price-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.original-price {
    position: relative;
    color: #999;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #ff5252;
    opacity: 0.7;
}

.sale-price {
    font-size: 1rem;
    font-weight: 800;
    color: #4caf50;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
    animation: salePulse 2s ease-in-out infinite;
}

.sale-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff5252, #ff1744);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(255, 23, 68, 0.4);
    animation: badgeShine 3s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes salePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes badgeShine {
    0%, 100% {
        box-shadow: 0 2px 6px rgba(255, 23, 68, 0.4);
    }
    50% {
        box-shadow: 0 2px 12px rgba(255, 23, 68, 0.7), 0 0 15px rgba(255, 23, 68, 0.3);
    }
}

